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 aware interfaces in struts2?
What is Custom Type Converter in Struts2?
how to connect from struts to database through hibernet and where u can modify the class
How you will make available any message resources definitions file to the struts framework environment?
What is java struts?
How do I access token?
Can you explain aware interfaces in struts2?
Explain about struts relation to html tags?
What is structs 2 validation framework?
Explain about logic match tag?
What are the core classes of struts?
What does apache struts do?
Describe the two types of formbeans.
Describe validate() and reset() methods.
What is the use of jsonvalidation?