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

Which interface must be implemented by all servlets?

795


Is servlet thread safe?

519


How do we translate jsp?

574


What are different ways for servlet authentication?

563


What are the difference between RMI and Servlets?

1049






If a servlet is not properly initialized, what exception may be thrown?

625


What are the kinds of http requests?

609


What are all the protocols supported by httpservlet?

648


Why doesn’t a servlet include main()? How does it work?

631


Explain the war file?

610


how the HTML data stored in web server?

1952


Whether thread can be used in servlets?

728


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

621


What is cgi?

596


Write a simple servlet program to print the contents of html.

549