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 use of struts config xml file?

0 Answers  


State the procedure for using forward attribute of link tag’s.

0 Answers  


what are the actions in struts?

10 Answers   Nihilent, Wipro,


What is the purpose of @emailvalidator annotation?

0 Answers  


What is struts and springs in java?

0 Answers  


What is the difference between empty default namespace and root namespace?

0 Answers  


Which class is the Front Controller in Struts2?

0 Answers  


when we enter the data in the form how it is stored in formbean class setter and getter methods?

1 Answers   TCS, Wipro,


What should be the name of xml file used for validation in struts?

0 Answers  


What are the main classes which are used in struts application?

0 Answers  


How you will make available any message resources definitions file to the struts framework environment?

0 Answers  


What is the purpose of @after?

0 Answers  


Categories