Main reasons for using servlet as a controller in struts.
why not jsp

Answer Posted / christ

If JSP's are using as a controller, then we should break the
rule of MVC. Which is the base for using struts. MVC is used
to divide the application into three part(model part, view
part and controller part). So that in future if we want to
change the view, then you do not need to do much work on
your logic part.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to build struts application in eclipse?

535


What is action class? What are the types of action class?

537


Explain about how requests from the client are sent?

532


In struts.xml, what does the attribute "method" stands for in the "action" tag?

542


How can you create your custom interceptor in struts 2?

543






Explain about tiles?

583


What is s token?

543


What is an interceptor stack?

581


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2540


What is the difference between empty default namespace and root namespace?

566


Can you explain struts.properties in struts2?

538


Where should struts xml be placed?

515


Why do we need struts?

548


Explain the difference between jakarta struts and apache struts?

535


What is token used for?

522