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

The difference b/w servlet and jsp is :
1. In servlet html is embedded with java code but in jsp
java code is embedded with html.
2. jsp is a long process because in jsp code is convert to
servlet at the time of deployment.
3. servlet are fast process than jsp.
4. no need to deploy jsp ,in servlet we need web.xml but no
need to use in jsp.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the process to implement doget and dopost methods?

554


What is a server side include (ssi)

580


Explain url encoding?

527


What is a deployment descriptor?

607


What do you mean by url pattern in servlet?

637






What's the architecture of a servlet package?

566


Which interface should be implemented by all servlets?

709


Explain in brief the directory structure of a web application?

579


Tell us something about servletcontext interface.

635


Explain the jar and war files in servlet?

565


Explain the custom jsp tags and the beans.

625


Explain the difference between servlet and cgi?

617


What is a java servlet?

564


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

571


Explain mvc pattern.

598