why we use struts in our web application , means what was
drawbacks of servlet ...pls answer



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

Post New Answer

More Struts Interview Questions

How nested beans can be used in Struts applications?

0 Answers  


What is java struts?

0 Answers  


What is used to display the intermediate result in an interceptor?

0 Answers  


what is the difference between *.do & /do.*/? So what is the diffenence btn extension mapping & path mapping.What is those difference in work effect?

6 Answers   Wipro,


diffrence between dispatch action and lookupdispatch action write simple web appliction (insert records in database)

8 Answers   Athena Health Care, Symphony, TCS,






Why was reload removed from struts (since 1.1)?

0 Answers  


Are the struts tags xhtml compliant ?

0 Answers  


What is the role of a handler in mvc based applications?

0 Answers  


What are the two types of validations supported by validator framework?

0 Answers  


Why aren’t the struts tags maintained as part of the jakarta taglibs project ?

0 Answers  


In how many ways duplicate form submission can occurs?

0 Answers  


i have 500 jsps in my application,and i have same forward name for each jsp,so it lokks in strutsconfig.xml,from 1 to 500,but i want send 498 page directly,how can i cingigure my application

2 Answers   TCS,


Categories