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 / r b arumugam

Java Servlet is a Java File and is converted into .class
file. If there is any changes in Servlet we must compile
once again.
JSP is a HTML file and java coding is embedded into it. The
JSP page is automatically compiled. There is NO deplyment
descriptor file in JSP as web.xml

Servlet is fully java coding and JSP is a collection of
HTML,JSPtag,JSTL

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet collaboration?

667


How we can create war file in servlet?

665


Is servlet thread safe?

527


why we should override only no-agrs init() method.

680


What is the need of session tracking in web application?

585






Which interface should be implemented by all servlets?

702


What is the default http method in the servlet?

766


Difference between forward() method and sendredirect() method ?

588


When jsessionid is created?

609


What's the architecture of a servlet package?

560


Explain Action Servlet?

626


What methods do you use in servlet - applet communication?

586


Why is Servlet so popular?

618


What exactly are the functions of servlet?

603


Explain jsessionid and when is it created?

597