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
Is dispatcher servlet a singleton?
What is a servlet engine?
What is servlet collaboration?
What is the use of java servlet api?
how the HTML data stored in web server?
What is the servlet?
How do you load an image in a Servlet?
How does Cookies work in Servlets?
What is a servlet?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Explain url encoding?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
What do you mean by the servlet chaining?
What is servlet and its advantages?
Write a simple servlet program to print the contents of html.