why servlet is used as controller not JSP?

Answer Posted / gopikrishna

JSP is a scripting language flexible for webdesigners to
undersatnd the tags with java language and this is
espicially for presentation, as in this struts scenario,
Servlet is a component which is responsible for taking the
contents of incomming http requests and decode and process
for furthur forwarding rather than presenation...So this is
genaral way of thinking to understand y they had chossen
servlet instead of jsp. if we are having a beeter
understaning of jsp and servlets then, we ourself can
decide which one is more better if your way of thinking
also considering the load balancing issues.

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can duplicate form submission be handled in struts 2?

757


Do I have to credit struts on my own website?

759


What are the benefits of Struts framework?

746


What is the use of execAndWait interceptor?

789


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

760


What is the difference between struts and spring?

719


What do you mean by ognl?

787


What is struts2 namespace?

706


What are the classes used in struts?

836


In which method of action class the business logic is executed?

768


What is difference between actionform and dynaactionform?

808


What do you mean by struts.dev mode?

729


What is the significance of logic tags in Struts?

786


What is the purpose of action-mappings tag in struct-config.xml?

788


How many struts config file can be created in struts?

676