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

Why is it called struts?

529


How we can install struts?

551


Describe the mvc on struts?

542


Explain about logic match tag?

563


How can we display validation errors on jsp page?

529






What is request processor and how does it relates to action mapping?

573


What is difference between spring and struts?

498


What does i18n interceptor?

577


What is the purpose of struct-config.xml in struct2?

554


What is the configuration files used in struts?

519


What are the benefits of the struts system?

568


Which library is provided by struts for form elements like check boxes, text boxes etc?

505


what is ACID test for fresh engineers??what is the pattern??

2360


How to get data from the velocity page in a action class?

557


Which interceptor is responsible for i18n support?

518