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
What are the main classes which are used in struts application?
What are the sections into which a strut configuration file can be divided?
What is the purpose of @stringlengthfieldvalidator annotation?
When should be opt for struts framework?
What are the 5 constants of action interface?
What is Struts2?
Are interceptors and filters different?
Briefly tell the two kinds of form beans.
What's the purpose of execute method of action class?
What are Struts2 core components?
How can we write our own interceptor and map it for action?
Which technologies can be used at view layer in struts?
Where can I get a copy of struts?
Can you give an overview of how a struts application flows?
How do you create message resource?