what is the disadvantage of struts frame work?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Answer / pravin
we can write jsp code but managing of .xml file
is very difficult
Is This Answer Correct ? | 4 Yes | 12 No |
in struts how to use hibernate with struts>
How does struts2 token work?
what is the difference between model1 and model2 architecture in struts?
How nested beans can be used in Struts applications?
How you will display validation fail errors on jsp page?
Can I have html form property without associated getter and setter formbean methods?
Whats the difference between the default namespace and the root namespace?
Name some of the features of struts2?
Can we handle exceptions in Struts programmatically?
Explain architecture of struts2?
What are action errors and error?
what are componeents presents in Strutsconfig.xml?