0
Differentiate JSP and SERVLET

Mumbai University > information technology > sem 4> Web Programming

Marks: 5M

Year : May16

0  upvotes
0
JSP Servlets
JSP is a webpage scripting language that can generate dynamic content .Servlets are Java programs that are already compiled which also creates dynamic web content.
JSP run slower compared to Servlet as it takes compilation time to convert into Java Servlets. Servlets run faster compared to JSP.
It’s easier to code in JSP than in Java Servlets. Its little much code to write here.
In MVC, jsp act as a view .In MVC, servlet act as a controller.
JSP are generally preferred when there is not much processing of data required. servlets are best for use when there is more processing and manipulation involved.
The advantage of JSP programming over servlets is that we can build custom tags which can directly call Java beans. There is no such custom tag facility in servlets.
We can achieve functionality of JSP at client side by running JavaScript at client side. There are no such methods for servlets.
0  upvotes
Please log in to add an answer.

Next up

Read More Questions

If you are looking for answer to specific questions, you can search them here. We'll find the best answer for you.

Search

Study Full Subject

If you are looking for good study material, you can checkout our subjects. Hundreds of important topics are covered in them.

Know More