Servlet and Jsp are similar,,how we can know in this situation better to use servlet or jsp..I want to know where do we can use servlet and Where do use Jsp?Exact difference:Servlet and Jsp..

Showing Answers 1 - 3 of 3 Answers

alok

  • Oct 27th, 2005
 

servlet and jsp are almost same because every jsp become servlet. but to make our flow clear we use jsp as a interface layer and servlet as a controller. i.e jsp is use with HTML to make a dynamic page but servlet is use to navigate ur request.

  Was this answer useful?  Yes

viswanadh

  • Mar 13th, 2006
 

A jsp is inturn a servlet. When we use jsp's the amount of code will be decreased when compared to servlets.But jsp's take more amount of processing time.Therefore we use jsp's if a jsp can satisfy the given processing criteria else notwe go for a servlet.

  Was this answer useful?  Yes

Saradhy

  • Dec 21st, 2006
 

Both Servlets and JSP's are using for the same purpose i.e to generat the dynamic content. We can either use Servlets or JSP's. But According to the MVC Architecture, we should have to use Servlets for Controlling and JSP for viewing. MVC in sense MODEL VIEW CONTROLLING....So here Model is which talks to database i.e bean. View is presentation view (client side view) and Controlling is for control purpose(redirectiong purpose)



Thanks
saradhy

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions