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 are the different ways we can maintain state between requests?

573


Why do we have servlet listeners?

597


What is the difference between portlet and servlet?

510


Describe in brief RequestDespatcher?

594


What is the GenericServlet class?

600






Why do we need a constructor in a servlet if we use the init method?

515


How httpservlet is different from the genericservlet?

562


What is cookie in servlet?

593


What is difference between GenericServlet and HttpServlet?

569


What methods do you use in servlet - applet communication?

584


Is java servlet still used?

587


What is the capacity the doget can send to the server?

574


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

613


What is the difference between the http servlet and generic servlet?

601


Which event is fired at the time of project deployment and undeployment?

786