what is the disadvantage of struts frame work?

Answers were Sorted based on User's Feedback



what is the disadvantage of struts frame work?..

Answer / suryaprakash

struts is flexible control layer based on the technlogies
like servlets,jsp xml but we can say the main disadvantage
using struts is it support WebApplications only more over
it can't applicable for standalone application this can
resolved in Sping FRAME work

Is This Answer Correct ?    24 Yes 3 No

what is the disadvantage of struts frame work?..

Answer / sudhakar

yes, suryaprakesh is right.i aggree with you

Is This Answer Correct ?    7 Yes 1 No

what is the disadvantage of struts frame work?..

Answer / ajay

struts is good for front end side,it does not provide
anything for databse side,means you have to go for other
technologies to connect to db

Is This Answer Correct ?    9 Yes 3 No

what is the disadvantage of struts frame work?..

Answer / hari

The main disadvantage with Struts framework is it is
Tightly coupled.
for Example
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {

Here if we use struts we need to call these 4 parameters
for every class i.e. AM AF,request and response.

Here it goes clear explanation

When comparing with business logic component development in
Struts. In Struts business logic component is derived from
Action class of Struts API.
The method implemented in Action class must be an execute
() method, its arguments are Struts API classes
ActionMapping, ActionForm, HttpServletRequest and
HttpServletResponse and the method return type ActionForward
But the method implementation may contain logic to insert
record into one table. For instance the business method is
saveEnquiry.
But the class, the method name, the method arguments and
the return type of the method are specific to Struts
framework.
If we want to use the saveEnquiry functionality outside the
Struts framework. We cannot execute Action class execute()
method outside the Struts framework.
The saveEnquiry() method functionality became specific to
Struts framework only. Such type of business logic classes,
methods and their implementations are heavy weight.

So this is the main disadvantage of Struts as per my
knowledge.

Is This Answer Correct ?    6 Yes 4 No

what is the disadvantage of struts frame work?..

Answer / viswa

In Struts, no transparency..., almost flow of struts frame
work is internally hidden and Single Contoller (Acton
Servlet) always reduces the performance.

Is This Answer Correct ?    2 Yes 1 No

what is the disadvantage of struts frame work?..

Answer / binesh speridian technologies

It can become difficult to debug with the various .xml
files that Struts relies on. If you have a setting out of
wack, it's not very descriptive on how to fix it or what
the issue is.

* Figuring out what all the .xml attributes and tags is
another issue. Get a GUI plug-in for Eclipse or whatever
IDE you use. They are very useful when learning the Struts
ropes or setting up something such as Validator.

* Using the custom JSP tags, especially iterate, can be
slightly confusing. Same thing with the link tag. There are
scenarios that often come up where you say "I know if I
just used a scriptlet, I could get this to work in
seconds!" So the difficultly comes when you ask "how do I
do this using Struts tags?"

Is This Answer Correct ?    8 Yes 8 No

what is the disadvantage of struts frame work?..

Answer / santosh anand

In struts , their is no facility of backward flow.Suppose we are in page 1 and when we submit it calls action mapping page2.Their may be lot of variable stored in session , which is available to page2.Now we wish to go page1 from page 2, for this we have to call the action mapping of page1. But struts flow is always in forward direction. So when we call page 1, values stored in session never get reversed.So it reduces the performance.To resolve this problem of struts, Their is a framework called Web Flow Nevigation Manager(WFNM) of Sourgeforge.net.This framework can be integrated with struts.

Is This Answer Correct ?    6 Yes 6 No

what is the disadvantage of struts frame work?..

Answer / sunitha

the main disadvantage is we can't come back to the
application.(in reverse order)

Is This Answer Correct ?    3 Yes 7 No

what is the disadvantage of struts frame work?..

Answer / sunitha

the main disadvantage is we can't come back to the
application.(in reverse order)

Is This Answer Correct ?    3 Yes 9 No

what is the disadvantage of struts frame work?..

Answer / pravin

we can write jsp code but managing of .xml file
is very difficult

Is This Answer Correct ?    4 Yes 12 No

Post New Answer

More Struts Interview Questions

in struts how to use hibernate with struts>

0 Answers   Infosys,


How does struts2 token work?

0 Answers  


what is the difference between model1 and model2 architecture in struts?

3 Answers  


How nested beans can be used in Struts applications?

0 Answers  


How you will display validation fail errors on jsp page?

0 Answers  






Can I have html form property without associated getter and setter formbean methods?

0 Answers  


Whats the difference between the default namespace and the root namespace?

0 Answers  


Name some of the features of struts2?

0 Answers  


Can we handle exceptions in Struts programmatically?

0 Answers  


Explain architecture of struts2?

0 Answers  


What are action errors and error?

0 Answers  


what are componeents presents in Strutsconfig.xml?

2 Answers   HCL,


Categories