What is the difference between JSP and Servlet?

Answer Posted / pratheeka reddy

Servlets are pure java programs.here we can't use HTML.
But in JSP we use HTML,so we can use and modify the data
very easily.
Servlets are faster than JSP.bcoz while running JSP
programs it will be converted into Servlets and then
executed,so it takes more time.

Is This Answer Correct ?    205 Yes 74 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I declare a java class in jsp?

503


Why do we need servlets and jsp?

484


Can we call servlet from jsp?

477


In the servlet 2.4 specification singlethreadmodel has been deprecated, why?

510


Explain some jsp life-cycle methods that can be overridden.

502






Explain jsp and tell its uses?

532


How does a servlet communicate with a jsp page?

547


What is the page directive is used to prevent a jsp page from automatically creating a session?

558


What is cookies in jsp?

500


What is the difference between include directive and include action?

508


List down the major differences between the jsp custom tags and java beans.

481


How to restrict page errors display in a JSP page?

585


How can information from one JSP be passed to another JSP?

593


What is difference between html and jsp?

503


Which language is used to write servlets and jsp?

461