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

What is a web application and what is it’s directory structure?

584


What do you mean by cgi in servlet?

631


How does tomcat servlet container work?

592


What methodology can be followed to store more number of objects in a remote server?

1817


What is servlet lazy loading?

695






What is cgi and what are its drawbacks?

553


How do you invoke a servelt?

625


Define context initialization parameters.

574


Tell us something about servletconfig interface.

580


Why filter is used in servlet?

526


Which httpsession object is used to view and manipulate information about a session?

730


Explain mvc pattern.

594


What's the advantages using servlets than using cgi?

556


Explain in brief the directory structure of a web application?

570


What is http servlet? Explain with the help of an example.

581