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 a scriptlet in jsp and what is its syntax?
how can i update the marque in jsp without changing the sourse code
What is welcome file list?
Explain some jsp life-cycle methods that can be overridden.
Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page?
Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?
Why is jstl used?
what is the difference between jsp and servlets ?
When does a container initialize multiple jsp / servlet objects?
How did you implement caching in jsp?
How is scripting disabled?
How to delete a cookie in a jsp?
Can you call jsp from servlet?
What is the difference between server side and client side programming?
How can we disable el?