what is the difference between Servlet and JSP?Advantage of
JSP over Servelt?Any concept present in JSP which we cant
implement in Servlet?
Answer Posted / naina verma
Difference between servlets and JSP:
1. Servlet = HTML in java code.
JSP = java code in HTML.
2. Servlet support all protocols.
JSP only support HTTP protocol.
3. Servlet has more Dynamic content and less Static.
JSP less Dynamic content and more static content.
4. Servlet has business logic.
JSP has presentation and business logic both.
5. In servlet for any modification recompilation is done.
In JSP no recompilation is done for any modification.
6. Servlet is fast.
JSP is Slow.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
Why the concept of single thread model interface is used?
What is servlet and list its types?
What are the advantages of Servlet over CGI?
How is the get () method different from the post() method?
Explain the difference between servlet and cgi?
What are all the advantages of servlet over cgi?
How native code can be used in a servlet?
Describe servlet?
Write the code to get the server information in servlet.
What is the difference between Server and Container?
What is the main purpose of java servlets?
How does tomcat servlet container work?
What is new in ServletRequest interface ? (Servlet 2.4)
What is the purpose of dispatcherservlet properties?