What is the difference between JSP and Servlet?
Answer Posted / abhimanyu
Both servlet and jsp are web components. But servlet is
best suited for request processing, handling the business
logic while jsp is suitable for content generating .Its
easy to include html tag in jsp rather than servlet.Also
jsp is compiled to servlet when first loaded to
webserver.So in many framework servlet act as a controller
while jsp as a view.Also implicit object and action
elements available in jsp but not in servlet.jsp seprates
busigness Logic.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do I perform browser redirection from a jsp page?
How can I maintain session in JSP Page in the bases of user name and password:
Define Composition.
What is the
What are different types of comments used in jsp?
Why is it not recommended to use script elements in jsp?
What is the use of?
How do I mix jsp and ssi #include? What is the difference between include directive & jsp:include action?
Explain JSP directives.
What is jstl (jsp standard tag library)?
How do we print “
creates a new line in html” in jsp?
Explain implicit objects in jsp?
How is jsp used in the mvc model?
What is session object in jsp?
What is auto-flush attribute?