waht is the main diference b/w servelts and JSP ?

Answer Posted / ravindra nhavi

the main different is jsp only depend on HTTP protocol
but servlet support for HTTP,SMTP,FTP protocol

In jsp you directly embeded java code in to the html code
but is in servlet is not posible.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between PrintWriter and ServletOutputStream?

781


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

575


What do you mean by servlet?

726


What is the process to implement doget and dopost methods?

552


Explain session tracking and its importance?

552






What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

623


Can filter be used as request or response?

548


Which HTTP method is non-idempotent?

622


why we should override only no-agrs init() method.

684


What do you mean by request dispatcher in servlet? Also explain its methods.

620


How can you use a servlet to generate a plain text instead of html?

603


What is the major difference between context parameter and context attribute?

601


How do I support both get and post from the same servlet?

706


List some life cycle methods of a servlet.

594


Explain in brief the directory structure of a web application?

579