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 / ravindra nhavi
the main difference between servlet and jsp is Jsp only
support to HTTP protocol but servlet can support to
HTTP,FTP, and SMTP protocol
1. The one major advantage of Jsp is we can java code
directly embeded into html code but in servlet is not
possible
2. The second diff. is jsp page automatic compile but
servlet will manually redeploy.
in jsp implicit objects are presents which is we can
implement directly into jsp pages but in servlet implicit
objects are not presents.
| Is This Answer Correct ? | 124 Yes | 32 No |
Post New Answer View All Answers
What is the difference between CGI and Servlet?
What is ServletConfig object?
What are the life-cycle methods for a servlet?
Which HTTP method is non-idempotent?
How can you create a session in servlet?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What are the common methods that are included in the http servlet class?
What is load-on-startup in servlet?
How is an application exception handling is done using a servlet?
What is servlet attributes and their scope?
How are filters?
Can you use javascript in servlets?
How can we perform any action at the time of deploying the project?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What is the use of httpservletresponsewrapper?