what is the disadvantage of struts frame work?

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


Please Help Members By Posting Answers For Below Questions

What validate() and reset() method does ?

638


What are the steps used to setup dispatch action?

595


Explain the difference between jakarta struts and apache struts?

610


how to connect from struts to database through hibernet and where u can modify the class

2191


Which model components are supported by Struts?

654






How duplicate form submission can be controlled in struts?

743


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

707


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

659


Is struts efficient?

572


How the exceptions are handled in struts?

613


Are interceptors thread safe?

664


Explain about struts relation to html tags?

641


How can you create your custom interceptor in struts 2?

623


What's mvc pattern ?

669


What are the classes used in struts?

723