Main reasons for using servlet as a controller in struts.
why not jsp
Answer Posted / sitaram
JSP is a presentation layer (view). JSP is not a controller.
servlet is controller. because we can manipulate and add the
server-side we can write in the servelt.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is validate() and reset() functions?
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
What is front controller in struts2?
How are interceptors and servlet filters different?
Why use spring, if you are already using struts?
What is the purpose of @requiredstringvalidator annotation?
What are apache struts?
What is role of action class?
How to convert struts to spring mvc?
Can we have multiple struts config files ?
Which interceptor is responsible for i18n support?
What configuration changes are required to use resource files in Struts?
Are the struts tags xhtml compliant ?
What are the benefits of the struts system?
What are inner class and anonymous class?