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 / ramaswamy ratnala

servlets and jsp both are webapplications to produce the
content means dynamic webpages .both takes the request
parameters to serve the clients
2)application logic and presentation logic are tightly
coupled .application logic cannot support to give the
presentation logic
3)servlets are faster compare to the jsp because jsp files
can be converted to the servlet ie its a time taking process
4) in jsp java code directly embeded into the html code
5) in servlets deployment process is needed i.e web.xml
in jsp no need to write the web.xml file it is
automatically converted to the jsp to servlets
6) in jsp contains the ExpressionLanguage if in our
application development use EL to reduce the application
development time

Is This Answer Correct ?    48 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is dispatcher servlet a singleton?

548


What is a servlet engine?

546


What is servlet collaboration?

665


What is the use of java servlet api?

602


how the HTML data stored in web server?

1955






What is the servlet?

625


How do you load an image in a Servlet?

662


How does Cookies work in Servlets?

653


What is a servlet?

611


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

572


Explain url encoding?

523


Explain their methods? Tell me their parameter names also have you used threads in servlet?

585


What do you mean by the servlet chaining?

549


What is servlet and its advantages?

527


Write a simple servlet program to print the contents of html.

553