What is the difference between JSP and Servlet?
Answer Posted / satyabrata
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.
| Is This Answer Correct ? | 103 Yes | 15 No |
Post New Answer View All Answers
What is jsp index?
What is client scripting?
What are the attributes of page directive?
How are the jsp requests handled?
Why is jstl used?
What is jsp and its advantages?
What is c tag in jsp?
What is the difference between servletcontext and pagecontext?
What are the benefits of pagecontext implicit object?
What is Include directive?
Why do we need servlets and jsp?
What do you mean by jstl?
Can you disable jsp scripting?
What are the possible values for language directive?
What is context in web application?