Pages

Tuesday 14 January 2014

JSP VS SERVLETS

Following Points are noted for Java Server Pages:-

1. JSP is a webpage scripting language that can generate dynamic content.
2. JSP run slower compared to Servlet as it takes compilation time to convert into Java Servlets.
3. It’s easier to code in JSP than in Java Servlets.
4. In MVC, jsp act as a view.
5. JSP are generally preferred when there is not much processing of data required.
6.The advantage of JSP programming over servlets is that we can build custom tags which can directly call Java beans.
7.We can achieve functionality of JSP at client side by running JavaScript at client side.


Following Points are noted for Java Servlets:-

1. Servlets are Java programs that are already compiled which also creates dynamic web content.
2. Servlets run faster compared to JSP.
3. Its little much code to write here.
4. In MVC, servlet act as a controller.
5. Servlets are best for use when there is more processing and manipulation involved.
6. There is no such custom tag facility in servlets.

7. There are no such methods for servlets.


No comments:

Post a Comment