Even though Servlets and JSP are web based concepts .wht is
the use of using Struts using then

Answer Posted / chandan

If we are developing a web application following MVC architecture using servlets and JSP and without using struts then then we have founds the following drawbacks:
1)struts provides a built-in controller, but when we develope application without struts then we have to develop our own controller which is not reusable and developing controller is a complex task.
2)using struts tiles concept we can achieve the view code(html code) reusability. Although we can achieve it using JSP include mechanism, but JSP include mechanism has some limitations(designing a composite view leads some limitations).So tiles concept provides the better solution for designing a composite view.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is http forward?

553


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

755


What steps are required to for an application migration from Struts1 to Struts2?

612


Explain struts?

559


What is the purpose of @requiredstringvalidator?

564






What is the use of lookupdispatchaction?

566


Is struts compatible with other java technologies?

534


What is strut action mapping?

517


Can we handle exceptions in Struts programmatically?

519


Can we have more than one struts-config.xml file for a single struts application?

535


What are the bundled validators?

594


What are the classes used as part of struts framework ?

526


What is difference between interceptors and filters?

541


What is filter dispatcher in struts?

537


Which design pattern is implemented by Struts2 interceptors?

556