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 can we disable el?
When destroy method of jsp is called?
What is the purpose of creating custom tags?
Is jsp used?
Explain the uses of jsp?
Is jsp server side scripting language?
What is c tag in jsp?
What are the implicit, internal el jsp objects and their differences from jsp objects?
What is jsp servlet?
What are standard actions in JSP?
Explain various implicit objects in expression language.
What is difference between jsp and jstl?
What is jsp syntax?
What is expression tag in jsp?
What is the difference between include directive and include action?