O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6.6 ELEMENTS IN A JSP PAGE

A JSP can be considered to be a higher level abstraction of a Servlet since JSP's are converted into Servlets. So, it follows that things that can be accomplished by a Servlet can also be done by JSP. However, JSP contains HTML and is fundamentally in the form of an HTML page – in fact it is referred to as a JSP page. A JSP page contains static elements and dynamic elements. The static elements form the HTML, WML (Wireless Markup Language) or XML and the dynamic elements in Java scriptlets. The JSP elements are in between the <% and %> tags. The following are the tags that are used.

6.6.1 Declarations

JSP Declarations are used to declare members of the (servlet) class. This applies to methods as well as variables. It ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required