What is the difference between JSP and Servlet?
Answer Posted / gaurav
The main difference between jsp and servlet is that in
servlet we write html code in java class and in jsp we write
java code in html page.Servlet is a java class.According to
MVC(model,view,controller) pattern servlet is used as
controller while JSP is used as view.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Can jsp run without server?
What is asp and jsp?
How do I prevent the output of my jsp or servlet pages from being cached by the browser?
What is a tag file in jsp?
Mention the implicit objects in a jsp.
What is dynamic web project?
What is the need for jsp?
What are implicit objects in jsp?
Is jsp used?
What is the difference between include and jsp directive: include action?
How does jsp engines instantiate tag handler classes instances?
Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page?
How many types of jsp tags are there?
What do cookies mean?
What is jsp and why do we need it?