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 pagecontext?
What is the resourcebundle class in jsp?
What is tag file in jsp?
How we can use javascript with jsp pages?
Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme
What are the jsp elements?
What is jsp scriptlet tag used for?
How can I maintain session in JSP Page in the bases of user name and password:
mention the three important tags used in the development of jsp bean.
What do you mean by isscriptingenabled attribute?
How do we print “
creates a new line in html” in jsp?
How to get value from java to jsp page?
Where is jsp used?
How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)
How does jsp engines instantiate tag handler classes instances?