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 common methods that are included in the http servlet class?
What is ServletConfig object?
What is servlet container. how it works?
What is servlet in tomcat?
Can you call a jsp from the servlet?
How can a servlet be used to generate plain text instead of html?
How to upload a file to the server using servlet?
How servlet is created?
What is the workflow of a servlet?
What do you mean by mime type?
Is servlet thread safe?
What is servlet instance?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What is session tracking?
What are the benefits of using servlet over cgi?