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

What is the purpose of @emailvalidator annotation?

690


How to use forward action to restrict a strut application to mvc?

796


What are the loop holes of struts?

775


What configuration files are used in struts?

732


How interceptor works in struts 2?

808


Which interceptor is responsible for file upload support?

805


Is Struts Framework part of J2EE?

777


Why are springs better than struts?

802


What are the two different types of validations that the validator framework supports?

712


What is the naming convention for a resource bundle file in struts2?

744


What configurations are stored in struts configuration file ?

739


What are apache struts?

690


Explain struts.devmode?

750


What’s the utilization of resource bundle properties file in struts validation structure?

825


What does apache struts do?

699