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
Can I declare a java class in jsp?
Java Server Page I can use a function in two ways:
Either I declare
Explain handling of runtime exceptions.
How many jsp implicit objects are there?
What is full form of jsp?
How clear chache and buffer of opera browser.
Explain pge Directives.
Explain how you understand the action tag and jsp action elements.
Explain the jsp implicit objects?
What is welcome file list?
What is a jsp expression?
How does jsp engines instantiate tag handler classes instances?
Can a subsequent request be accessed with one’s servlet code, if a request attribute is already sent in his jsp?
How can my application get to know when a httpsession is removed?
What is tld in jsp?