what is the difference between Servlet and JSP?Advantage of
JSP over Servelt?Any concept present in JSP which we cant
implement in Servlet?

Answer Posted / chandra

servlet: its a java class so for every change we have to
compile the code to reflect the change.Mainly using for
writing business logics.

jsp:its a file, its automatically converted into a servlet
on deploying. We can't compile it explicitly.the changes
will get reflect by saving the file.Its mainly used for
presentation of data.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make sure a servlet is loaded at the application startup?

560


How many servlet objects are created?

567


Why do we have servlet listeners?

603


When servlet is loaded?

596


What is session?

643






What are the uses of servlets?

624


What is war file?

583


How can we achieve transport layer security for our web application?

573


How can we create deadlock situation in servlet?

853


What is servlet lazy loading?

697


Which is the methods of generated servlet?

684


How will two or three servlets interact or communicate with each other?

916


Write a program to show the functionality of doget and dopost method?

659


What is servlet and its use?

629


What is a servlet?

611