why servlet is used as controller not JSP?

Answer Posted / xxx

while using in mvc1 architechture jsp is used as the
request and the response so that the presentation and
apllication logic are the same component but in case of
using servlets in mvc2 the advantage over this is that the
request is handled using jsp but the response and the
overall manipulation is done by using the servelet so that
the presentation and application logic are the same...ie
the difference

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State an example of struts configuration file as an action parameter for action servlet.

535


Can we handle exceptions in Struts programmatically?

513


In struts, how can we access java beans and their properties?

555


What is the purpose of @stringlengthfieldvalidator annotation?

598


Explain about the process of functioning of the struts program?

586






Which model components are supported by Struts?

564


How can we display all validation errors to user on jsp page?

645


What are pull and push mvc architecture and which architecture does struts2 follow?

506


Why it called struts?

557


What are the core classes of struts?

565


What is the use of execAndWait interceptor?

554


Which class of struts is responsible to converts data types from string and vice versa?

658


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

556


What is discontinuous strut?

490


What is the struts in java?

501