What is the difference between JSP and Servlet?
Answer Posted / vignesh
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.Using servlet
as request processor and jsp as view we can achieve the mvc
architecture.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Tell us about the jsp life cycle methods.
Give the use of exception object.
What do you mean by jstl?
What are custom tags in jsp?
How can we handle exceptions thrown by jsp service method?
Why don’t we need to configure jsp standard tags in web.xml?
What is context in jsp?
What is a output comment?
What is contextpath in jsp?
What information is needed to create a tcp socket?
What is the difference between jsp and thymeleaf?
Is jsp server side or client side?
What is iselignored in jsp?
What is a hidden comment in jsp?
Explain the jsp:setProperty action.