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
Which interface must be implemented by all servlets?
Is servlet thread safe?
How do we translate jsp?
What are different ways for servlet authentication?
What are the difference between RMI and Servlets?
If a servlet is not properly initialized, what exception may be thrown?
What are the kinds of http requests?
What are all the protocols supported by httpservlet?
Why doesn’t a servlet include main()? How does it work?
Explain the war file?
how the HTML data stored in web server?
Whether thread can be used in servlets?
How can we perform any action at the time of deploying the project?
What is cgi?
Write a simple servlet program to print the contents of html.