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 scriptlet, expression and declaration in jsp?
What's the difference between javabeans and taglib directives?
Are dialogue tags necessary?
What is difference between sendredirect and requestdispatcher?
Can you disable the caching on the back button of a particular browser?
What is jsp? Explain
Define Static Block.
Which tag is used to execute java source code in jsp?
Explain pge Directives.
Can jsp contain javascript?
How run jsp program in netbeans?
Define Expression
What do you know about jsp tags?
How can I prevent the use of scripts and java code on the jsp page?
What is a jsp directive?