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 / tarun pundreek sharma
JSP is a server side technology given by sun microsystem after servlet technology. we have some drawback in servlet to overcome those drawback and also to attract programmers working on other domain the sun micro system introduce JSP.
Advantages of JSP:-
1: we need to re-compile our servlet for every single change in the source code of servlet , where as in the case of JSP re-compilation is not required since JSP are automatically handle by the web container for any update in their code.
2: servlet can not be access directly & have to be first mapped in the web.xml file.where as the jsp page access directly as a simple HTML page.
3: both servlet & jsp are server side components used to generate dynamic Html pages however JSP is preffered over servlet as it is developed by using a simple HTML template
& automatically handled by the JSP container.
4: JSP is a tag based approach it makes it easy to understand.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of cookies?
What are the objects involved when a servlet receives a call from client?
What is cgi?
How to get the IP address of client in servlet?
Explain the differences between jsp and servlet.
What is a deployment descriptor?
What are the disadvantages of storing session state in cookies?
What is context in servlet?
What is webservlet?
How do you invoke a servelt?
Differentiate between the print writer and servlet output stream?
What is difference between jsp and servlet?
How to find whether a parameter exists in the request object?
What is session?
When a servlet accepts a call from a client, it receives two objects. What are they?