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
How do we configure init params for jsp?
What are the lifecycle phases of a jsp?
What is a output comment?
Is jsp front end or backend?
What is include directive in jsp?
Why is used in jsp?
What does jsp mean?
Why is jsp used for?
Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?
What is translation phase?
How to include static files in a jsp?
What is a jsp container?
What is the jsp?
Why is _jspservice() method starting with an '_' while other life cycle methods do not?
How to deactivate el usage on jsp?