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
Why are frameworks used?
What is the purpose of @beforeresult annotation?
How do you convert struts to springs?
What is difference between lookupdispatchaction and dispatchaction?
What is the purpose of plug-in tag in struct-config.xml?
What is the use of forwardaction?
What is the purpose of execute method of action class?
Why is action servlet a singleton in struts?
What is role of actionservlet?
What is the use of namespace in action mapping in Struts2?
Explain about the future of struts?
How can we upload files in Struts2 application?
How interceptor works in struts 2?
Why it called struts?
Why are springs better than struts?