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 http servlet?
Which interface must be implemented by all servlets?
Explain the difference between get and post method in servlet?
What are the phases of servlet life cycle?
How do I know if java is running on linux?
How can you create a session in servlet?
What is MIME Type?
What are the kinds of http requests?
Whats the advantages using servlets over using CGI?
Can filter be used as request or response?
How would you create deadlock on your servlet?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is pure servlet?
Explain the architechure of a servlet?
Explain the difference between servletconfig and servletcontext in servlet?