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 |
can we change the order of parameters in execute()?
What are the benefits of the struts system?
project architechture in java
3 Answers AC, IBM, INDUS, Satyam,
How can you create your custom interceptor in struts 2?
What is the purpose of @customvalidator annotation?
If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da???
diffrence between dispatch action and lookupdispatch action write simple web appliction (insert records in database)
8 Answers Athena Health Care, Symphony, TCS,
What are the steps used to setup dispatch action?
What is the purpose of @result annotation?
If the framework doesn’t do what I want, can I request that a feature be added?
Describe the basic steps used to create a tiles application?
What is struts2 in java?