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
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
What is the use of execAndWait interceptor?
Which interceptor is responsible for i18n support?
Give an alternative way to protect jsp’s with not much features from direct access.
What is the purpose of @intrangefieldvalidator annotation?
How tag libraries are defined in Struts?
Who wrote struts?
Briefly tell the two kinds of form beans.
What inbuilt themes are provided by struts2?
What is the purpose of action-mappings tag in struct-config.xml?
What are the steps required for setting up validator framework in struts?
What is struts?
What is the purpose of @beforeresult annotation?
What is the role of a handler in mvc based applications?
Which design pattern is implemented by Struts2 interceptors?