What is the difference between JSP and Servlet?
Answer Posted / ranjan satapathy
Jsp is better for preparing presentation pages, while
servlet is good for request processing as it's more
difficult to write include, forward a static or dynamic url
with in out.println() ,
Jsp has also all implicit objects, we need not have to
instantiate any which is easier.
error handelling is easy in jsp isErrorPage="true"
errorPage="/page"
we need not have to bother about init(),service(),destroy
(),doGet(),doPost()in jsp.
in servlet for each time changing we have to explicitly
compile it.
Jsp automatically compiled by container when we reload the
page.
| Is This Answer Correct ? | 77 Yes | 11 No |
Post New Answer View All Answers
What is session getattribute in jsp?
How can we forward the request from jsp page to the servlet?
What is attribute in jsp?
What do you know about writing custom jsp tags?
How are custom tags in jsp created?
What is difference between custom jsp tags and beans?
What is taglibs?
What are the two types of comments supported by jsp?
What is the use of pagecontext in jsp?
Explain static method?
What are the components of jsp?
What is the purpose of jsp?
Which package does a jsp api consist of?
Explain pge Directives.
What are the jsp elements?