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
Give uses of object cloning?
How can we disable java code or scripting in jsp page?
What are the different scope values for the
What is the use of requestdispatcher?
How do I use a scriptlet to initialize a newly instantiated bean?
What is expression language injection?
What is include directive in jsp?
How to delete a cookie in a jsp?
What is jsp servlet?
What is the _jspservice() method?
Differentiate between pagecontext.include and jsp:include?
What is error page in jsp?
What is difference between sendredirect and requestdispatcher?
Is jsp a front end?
What is a jsp container?