Java JSP
- Java Server Pages
- A
server side
technology - Used to create dynamic web content
Tags
are used to insertJAVA
code intoHTML
pages- An advanced version of Servlet Technology,
Extension to Servlet
, it has all features of servlets, implicit objects and custom tags - JSP is first converted into servlet by JSP container before processing the client’s request
Difference between Servlet and JSP
- Servlet
A Servlet is a
Java class
which is used toextend
the capabilities ofservers
that host applications accessed by means of a request-response model. Servlets can respond toother types of requests too
. - JSP
A JSP is a
text document
which containstwo types
of text:static data
anddynamic data
. The static data can be expressed in anytext-based format
(like HTML, XML, SVG and WML), and the dynamic content can be expressed byJSP elements
.