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 front controller in struts2?

0 Answers  


Give an example of validates method used to avoid errors.

0 Answers  


For a single Struts application, can we have multiple struts-config.xml files?

0 Answers  


What is ognl?

0 Answers  


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

0 Answers  






Explain about the process of functioning of the struts program?

0 Answers  


What are the sections into which a strut configuration file can be divided?

0 Answers  


what is request processor class ?

10 Answers   Fidelity,


What are the classes used in struts?

0 Answers  


how canu done chechin and check out of u r project using with sample examples?

8 Answers   CTS, Logica CMG,


What is the purpose of @keyproperty annotation annotation?

0 Answers  


Can you explain struts.properties in struts2?

0 Answers  


Categories