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 / abilash

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 ?    235 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the requirement of servlet config and servlet context implemented and how are they implemented?

549


What are the advantages of Servlet over CGI?

672


How can you push data from an Applet to a Servlet?

617


What are the functions of an intercepting filter?

499


How do you communicate in between Applets and Servlets?

599






What is the difference between the servlets and cgi programs?

559


Why servlet is used as controller ? Not JSP? I want complete explation?

663


How does tomcat servlet container work?

597


Is it good idea to create servlet constructor?

751


How do we translate jsp?

582


Name the different ways of session tracking.

576


Explain how does JSP handle run-time exceptions?

588


How we can call a jsp from the servlet?

539


What is a web container and what is its responsibility?

535


What is session tracking?

704