waht is the main diference b/w servelts and JSP ?

Answer Posted / anurag joseph

there are minor difference btw these two.Servlet is used
for processing afterall containter is servlet engine.It
perform many task like load balancing,request
processing,generating image on fly.But if we want to
responce an html format than this is not efficient.thats
why jsp is needed.jsp is java inside Html and servlet is
like html inside java.JSP is used for graphical user
interface. it focus upon presentation not business logic
and processing.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain servlet life cycle?

625


Which HTTP method is non-idempotent?

622


What is servlet and its life cycle?

576


What is meant by a servlet?

615


What is difference between cookies and httpsession?

552






Define the lifecycle for executing a jsp page.

599


What are different Authentication options available in Servlets.

573


What is the difference between a generic servlet and http servlet?

528


What are the uses of servlet and what is servlet chaining?

567


What are different ways for authentication of servlet?

533


Elucidate servlet attributes and its scope?

577


How do you design microservices?

629


Explain their methods? Tell me their parameter names also have you used threads in servlet?

591


Tell us something about servletcontext interface.

632


Explain the servlet filter.

546