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...

why we use struts in our web application , means what was
drawbacks of servlet ...pls answer

Answer Posted / maneesha pandey

Programming web applications using servlets only is a very
hard thing, since you will have to write your HTML code
inside the servlet, which will produce complex, unreadable
and unmaintainable code.

The same thing is with JSP. If you program a web application
using JSP alone, you'll have to put your java code in JSP
pages, which will also be very hard to read and maintain.

This was the reason of the rise of the model 2
architecture(srtuts), where the servlet controls the flow of
the request, calls a model class to do the business logic,
decides which view (jsp or other) to send to the user, and
then sends the response to the user. This is known as the
MVC (Model-View-Controller) design pattern.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Briefly tell the two kinds of form beans.

980


Give the details of xml files used in validator framework?

1008


Does apache struts run on windows?

984


What is the purpose of @after annotation?

1032


What do struts do?

973


Where can I get a copy of struts?

939


What is purpose of execandwait interceptor?

1096


What is value stack?

1039


Is there a particularly good ide to use with struts?

923


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

937


Does struts include its own unit tests?

1021


What is the use of form bean in struts?

914


What is the design role played by struts?

1018


What is role of actionservlet?

1030


What kind of mvc is struts 2?

1023