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 types of Actions we have in Struts?
What are the steps used to setup dispatch action?
how the error can be showed in the jsp page in struts?
we have two applications A1 & A2 both are accesing the same databse table employee at the same time how we will manage this so that both application can get the correct no of emloyee while A1 is inserting a employee at the same time while other applicatuion is getting the empployee list.
What is struts framework in java?
Difference between struts1.2 and struts2.0?
3 Answers Bank Of America, HCL, Value Labs,
What is the purpose of @after annotation?
Are interceptors and filters different?
Why do we use struts?
what is the disadvantages of using DynaActionForm in struts framework?
What's the purpose of execute method of action class?
What is difference between spring and struts?