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

What is struts validator framework?

552


What are the loop holes of struts?

562


What is the apache struts vulnerability?

525


What are the steps required for setting up validator framework in struts?

567


In which order struts framework searches for a message bundle?

562






Describe the two types of formbeans.

581


What are the features of struts 2?

545


What is the role of action class in struts?

561


What is struts2 namespace?

511


What are the pros of struts 2?

563


What are inner class and anonymous class?

550


State an example of struts configuration file as an action parameter for action servlet.

541


What are the advantages of spring mvc over struts mvc?

501


How exceptions are handled in struts application?

539


How we can controlled duplicate form submission in struts?

522