JSP | Servlets |
It is a webpage scripting language used to create dynamic content. | They are java programs which are already compiled and can create some dynamic content. |
They run slower than servlets as it takes time for compilation to convert into servlets. | They run faster than JSP. |
It is easier to code. | It has more code than JSP. |
In MVC it acts as a view. | In MVC it acts as a controller. |
They are preferred where there is less amount of data processing. | They are used when there is more data processing and manipulation involved. |
They help in building custom tags and call the java beans directly. | They to not allow to build custom tags. |