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
What is attribute in jsp?
How can automatic creation of session be prevented in a jsp page?
Is jsp front end or backend?
Write a simple example for the clone() method.
What are the components of jsp?
What are the different scopes an object can have in a jsp page?
Give the syntax for jsp comments.
What is the difference between a jspwriter and a servlet printwriter?
Which tag is used to execute java source code in jsp?
Explain how you understand the action tag and jsp action elements.
What does jstl mean?
What are different types of comments in jsp?
How is jsp better than servlet technology?
What are the jsp tag?
How can we disable el?