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 / ravindra nhavi
the main difference between servlet and jsp is Jsp only
support to HTTP protocol but servlet can support to
HTTP,FTP, and SMTP protocol
1. The one major advantage of Jsp is we can java code
directly embeded into html code but in servlet is not
possible
2. The second diff. is jsp page automatic compile but
servlet will manually redeploy.
in jsp implicit objects are presents which is we can
implement directly into jsp pages but in servlet implicit
objects are not presents.
| Is This Answer Correct ? | 124 Yes | 32 No |
Post New Answer View All Answers
What is the dispatcher servlet?
Write a hello world program using servlets.
What do you mean by a filter and how does it work?
How is a servlet implemented in code?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
The code in a finally clause will never fail to execute, right?
What do you mean by scope object and what are its types?
How do we go with database connection and log4j integration in servlet?
What is the difference between genericservlet and httpservlet
What is meant by servlet? What are the parameters of the service method?
What is the difference between context parameter and context attribute?
How do you invoke a servelt?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What are the types of an http request?
Which java framework is most popular?