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
What do you mean by cgi?
What do you mean by web applications?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What are the jobs performed by servlets?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Why jsp is better than servlet?
What are different ways for authentication of servlet?
What is load-on-startup in servlet?
What is servlet name in web xml?
What do you mean by annotations in servlet?
What's the difference between servlets and applets?
What is the main purpose of java servlets?
What do you mean by url pattern in servlet?
How can a servlet be used to generate plain text instead of html?
Why the concept of single thread model interface is used?