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 ServletContext object?
What must be implemented by all servlets?
Should I override the service() method?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
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()?
What does the term localization refer to?
Why the concept of single thread model interface is used?
What are the uses of servlet and what is servlet chaining?
Write a hello world program using servlets.
What is http servlet? Explain with the help of an example.
How do you design microservices?
How do you configure a centralized error handler in servlets?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
Is servlet thread safe?
What are the functions of Servlet container?