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


Please Help Members By Posting Answers For Below Questions

What is http servlet?

586


Which interface must be implemented by all servlets?

801


Explain the difference between get and post method in servlet?

609


What are the phases of servlet life cycle?

611


How do I know if java is running on linux?

607






How can you create a session in servlet?

600


What is MIME Type?

665


What are the kinds of http requests?

611


Whats the advantages using servlets over using CGI?

590


Can filter be used as request or response?

546


How would you create deadlock on your servlet?

624


Are Servlets Thread Safe? How to achieve thread safety in servlets?

563


What is pure servlet?

698


Explain the architechure of a servlet?

606


Explain the difference between servletconfig and servletcontext in servlet?

577