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 |
What do you mean by the abstract package in struts2, and what is its utilization?
Who makes the struts?
What is role of action class?
Where can I get a copy of struts?
How to work with error tags?
what is struts? why Struts?
explain method overridding method overloding with examples?
what is the diff between struts1.0 and struts2.0
How is forward action used for integration?
what is the difference between SAX Parser and DOM Parser??
14 Answers Cap Gemini, Goldman Sachs, HCL, Hidden Brains, HP,
Are struts still used?
Can you give an overview of how a struts application flows?