Why to use jsp as they r implement as servlets?

Showing Answers 1 - 2 of 2 Answers

stephen

  • Oct 3rd, 2005
 

  servlet:

          we cant divide business logic from presentation logic .so it increases the project operation cost.

   jsp:

       we can separate business logic from presentation logic so it will reduce the operation cost of project.

  Was this answer useful?  Yes

javakiran

  • Apr 25th, 2006
 

JSP vs Servlet1) Servlet is pure java codes, which is used to extend the web server by providing dynamic codes. Inorder to write those codes, we require a strong background in JAVA programming2) If our development involves, working with diffrerent team of people, where we have page authors and developers working in tandem, servlet development is a big problem, as our page authors doesn't know anything about servlets3) And as u mentioned, their is a binding between code and presentation in Servlet , which creates this problem.JSP solves all this problems of the Page Authors, by separating the content and the design, so that page authors care only for the presentation part and the developer with the java code.By this way JSP supports wider audience than servletscheerssai

  Was this answer useful?  Yes

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