Answer Posted / 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 |
Post New Answer View All Answers
What validate() and reset() method does ?
What are the steps used to setup dispatch action?
Explain the difference between jakarta struts and apache struts?
how to connect from struts to database through hibernet and where u can modify the class
Which model components are supported by Struts?
How duplicate form submission can be controlled in struts?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
Is struts efficient?
How the exceptions are handled in struts?
Are interceptors thread safe?
Explain about struts relation to html tags?
How can you create your custom interceptor in struts 2?
What's mvc pattern ?
What are the classes used in struts?