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 form-be tag in struct-config.xml?

558


Can we handle exceptions in Struts programmatically?

513


Explain the components of struts?

536


How do struts work?

518


What are the life cycle methods of interceptor?

520






Why are springs better than struts?

600


What is difference between actionform and dynaactionform?

591


What is the purpose of @emailvalidator annotation?

493


Can I have html form property without associated getter and setter formbean methods?

569


What is difference between lookupdispatchaction and dispatchaction?

627


Can we have multiple struts config files in a single web app?

497


At the point, you should go for struts framework?

544


What is the purpose of execute() method?

569


What is the purpose of action tag in struts.xml?

557


What are action errors and error?

573