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



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

Answer / 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

More Struts Interview Questions

What is the purpose of @beforeresult?

0 Answers  


What do struts do?

0 Answers  


What is the use of token interceptor in Struts2?

0 Answers  


Which file is used by controller to get mapping information for request routing?

0 Answers  


Name some of the features of struts2?

0 Answers  


What is the use of jsonvalidation in struts?

0 Answers  


What are the bundled validators?

0 Answers  


When do I need “struts.jar” on my classpath?

0 Answers  


What is the life cycle of actionform?

0 Answers  


Do I have to credit struts on my own website?

0 Answers  


what is purpose cvs and vss in eclipse?

2 Answers  


Why do the struts tags provide for so little formatting?

0 Answers  


Categories