Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is the purpose of action tag in struts.xml?

937


Are interceptors and filters different?

955


What is the flow of requests in struts based applications?

928


What is the role of a handler in mvc based applications?

1164


When should be opt for struts framework?

972


What is the use of lookupdispatchaction?

964


What is the difference between forwardaction and includeaction?

1079


How exceptions are handled in struts application?

1088


Describe the basic steps used to create a tiles application?

1022


What is the actionform?

974


How can we display all validation errors to user on jsp page?

1044


What’s the difference between struts and turbine?

1094


Describe validate() and reset() methods.

1024


Explain integrate log4j in struts2 application?

949


What are apache struts?

854