What is the difference between JSP and Servlets?

What is the difference between JSP and Servlets?

JSPServlets
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.
Difference between doGet() and doPost()
What is the difference between doGet() and doPost()? - GET Method: All data we are passing to Server will be displayed in URL. Here we have size limitation......
What's the difference between servlets and applets?
What's the difference between servlets and applets? - Unlike applets, servlets have no graphical user interface........
What is JSP?
What is JSP? - JSP is a technology that returns dynamic content to the Web client using HTML, XML and JAVA elements....
Post your comment