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

Is struts efficient?

680


How tag libraries are defined in Struts?

779


When should we use SwtichAction?

772


What is actioncontext?

732


What is the purpose of @key annotation annotation?

812


Give an alternative way to protect jsp’s with not much features from direct access.

751


What should be the name of xml file used for validation in struts?

724


What are the core classes of the struts framework?

692


What are the core classes of struts?

777


What helpers in the form of jsp pages are provided in struts framework?

734


What is the use of reset method of ActionForm class?

762


Is there a particularly good ide to use with struts?

682


What is front controller in struts?

735


What is the purpose of @intrangefieldvalidator annotation?

1048


Difference between struts and spring?

776