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
Which is the methods of generated servlet?
How the servlet is loaded?
Explain the lifecycle of a servlet?
What is servlet and list its types?
Explain the role of dispatcherservlet and contextloaderlistener.
What are the uses of servlets?
What is servlet api used for conneting database?
What is servlet mapping?
What is a deployment descriptor?
Explain how does JSP handle run-time exceptions?
How to create war file?
Why is httpservlet declared abstract?
What is the difference between the servlets and cgi programs?
Does servlet have main method?
How servlets are deployed in java?