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 |
How do I install struts?
Where can i get jar file for use the struts-tags in struts2?
why we are not implement business logic in struts action?
1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they
What helpers in the form of jsp pages are provided in struts framework?
What is the use of ActionErrors in Struts?
What is filter dispatcher in struts?
What are Struts properties?
How is declarative handling of exceptions done in struts ?
What is controller in struts ?
What is actioninvocation in struts2?
What is dispatch action class?