What is the difference between JSP and Servlet?
Answer Posted / abhimanyu
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.jsp seprates
busigness Logic.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is full form of jsp?
Can you override jspinit() method? If yes, in which cases?
Explain implicit objects in jsp?
What is client scripting?
Give the syntax for jsp comments.
How to deactivate el on jsp?
what are the tools used in your project , How to ask the answer this question
How can you include the results of another page?
How can information from one JSP be passed to another JSP?
What is a expression?
List the various action tags used in jsp.
Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page? : Citibank
Can we call servlet from jsp?
How can we create jsp custom tags?
What is jsp expression?