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

What is the difference between servlet and jsp?

589


What is the element?

581


What are the servlet events?

583


What is the use of httpservletrequestwrapper?

580


What is difference between jsp and servlet?

633






Explain Action Servlet?

615


What is the disadvantage of cookies?

565


How can we perform any action at the time of deploying the project?

615


What is the directory structure of web application?

518


Whats the advantages using servlets over using CGI?

576


Differentiate between the print writer and servlet output stream?

554


What do you understand by mime type?

555


What is life cycle of Servlet?

602


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

608


What are the different methods involved in generic servlet?

549