You are on page 1of 2

JAVA SERVER PAGE

What is JSP ?

JSP stands for Java Server Pages is a technology for building web
applications that support dynamic content and acts as a Java servlet
technology. You can consider it a different option to a servlet, and it
has a lot more capabilities than a servlet.
JSP is used explicitly for creating dynamic web applications. Pages
created using JSP are simpler to manage as compared to a Servlet.
JSP pages are the reciprocal of Servlets as a servlet incorporates
HTML code within Java code, whereas JSP includes Java code within
HTML with the help of JSP tags. JSP can do all the things that a
Servlet can do.
Here is the list of benefits that JSP provides:

• JSP codes are easy to write and maintain.


• Development speed becomes fast, and there is no need for
recompilation and redeployment.
• It has high performance and scalability compared to other
dynamic web development tools.
• JSP is constructed on Java technology, which makes it
platform-independent.

JSP is considered to be better than servlet; there are many reasons


why JSP is more beneficial than servlet:

• JSP offers an efficient and more straightforward approach for


coding dynamic web pages.
• JSP doesn't need to have additional files such as java class
files, web.xml, etc.
• Web Container (or application server like tomcat) handled
changes when changes are done in the JSP code, and it does
not need recompilation.
• Direct access to JSP pages is possible, and hence web.xml
mapping is not necessary as you have to do in servlets.

You might also like