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
What is welcome file list?
What is jsp net?
Can a jsp page process html form data?
What is application in jsp?
What is the jspinit() method?
What is the resourcebundle class in jsp?
What is a scriptlet in jsp and what is its syntax?
What is jsp action tags?
How does jsp engines instantiate tag handler classes instances?
Can you use javascript in jsp?
How we can configure init params in jsp?
What are the implicit objects in jsp?
How is scripting disabled?
Can a subsequent request be accessed with one’s servlet code, if a request attribute is already sent in his jsp?
Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?