What is the difference between JSP and Servlet?
Answer Posted / vignesh
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.Using servlet
as request processor and jsp as view we can achieve the mvc
architecture.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is jsp action tags?
Why are implicit objects not available in a regular jsp page?
Give a sample jsp configuration in the deployment descriptor.
What is jsp scriptlet tag used for?
Why jsp is used instead of html?
Explain the difference between servlet and jsp?
How can we forward the request from jsp page to the servlet?
What is the use of session management?
Why should we not configure jsp standard tags in web.xml?
What is the
Which package does jsp api consist of?
Show attributes of page directives.
What is c tag in jsp?
Define Composition.
What are advantages of jsp over asp, php, pure servlets and others?