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
Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?
How to include a jsp file in another jsp file?
What is jsp in javascript?
What are jsp lifecycle methods?
What is a expression?
Explain lifecycle methods.
Give the use of session object.
How can you make the finally clause not to fail to execute?
What is context in jsp?
Which one is better jsp or servlet?
What is jsp life cycle?
Explain the jsp:setProperty action.
List out some advantages of using jsp.
How do I mix jsp and ssi #include?
Is jsp front end or backend?