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

How we can install struts?

549


What are the pros of struts 2?

551


Which class is the Front Controller in Struts2?

534


What are the steps used to setup dispatch action?

491


What are the contents on web.xml in struts application ?

506






What do you mean by actionform?

571


What is actionservlet?

554


Which design pattern is implemented by Struts2 interceptors?

545


What is the role of action class?

559


Explain about struts dispatch action?

544


How many instances of servlet usually run in a struts application ?

532


Are struts still used?

510


What is action chaining ?

620


What is the purpose of @expressionvalidator annotation?

584


Describe validate() and reset() methods.

593