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
How do we catch exception and process it using jstl?
What is the need for jsp?
What are the types of jstl tags?
How many jsp implicit objects are there?
What do cookies mean?
Explain the uses of jsp?
Why do we use jsp?
Explain handling of runtime exceptions.
What is a scriptlet?
What is an implicit object?
How to delete a cookie in a jsp?
What is scriptlet and what is expression?
Explain pge Directives.
Can we write java code in jsp?
How does a jsp work?