<title css='default.css'>JSP</title>

<resin/> supports Sun's JSP 1.1 specification.  JSP creates an HTML
page from HTML <em>template</em> text and scripting <em>actions</em>.
Resin supports Java and JavaScript as scripting languages for JSP pages.

<example>
<eg-em/&lt;%@ page language=javascript %&gt;
&lt;% var title='Counter' %&gt;/>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<eg-em/&lt;%= title %&gt;/>
&lt;/head&gt;
&lt;body bgcolor='white'&gt;
<eg-em/&lt;jsp:useBean id='counter' class='Counter' scope='application'/&gt;/>
&lt;h1&gt;<eg-em/&lt;%= title %&gt;/>&lt;/h1&gt;

Welcome, visitor <eg-em/&lt;%= counter.hit %&gt;/>!
&lt;/body&gt;&lt;/html&gt;

</example>

JSP supports an equivalent XML syntax.  The XML has the benefit of
consistency with the price of some extra verbosity.

<example>
<eg-em>&lt;jsp:directive.page language=javascript/&gt;
&lt;jsp:scriptlet>var title='Counter' %&lt;/jsp:scriptlet></eg-em>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<eg-em>&lt;jsp:expression>title&lt;/jsp:expression/></eg-em>
&lt;/head&gt;
&lt;body bgcolor='white'&gt;
<eg-em/&lt;jsp:useBean id='counter' class='Counter' scope='application'/&gt;/>
&lt;h1&gt;<eg-em>&lt;jsp:expression> title &lt;/jsp:expression></eg-em>&lt;/h1&gt;

Welcome, visitor <eg-em>&lt;jsp:expression> counter.hit&lt;/jsp:expression></eg-em>!
&lt;/body&gt;&lt;/html&gt;

</example>

<defun name='Actions' title="Actions">
<a href='jsp-actions.xtp'>Actions</a> are the core of JSP.
Actions range from printing the a script expression, to creating and
storing a Java Bean.
</defun>

<defun name='Custom Tag Libraries' title="Custom Tag Libraries">
<resin/> encourages the creation of <a href='xtp-jsp.xtp'>custom tag
libraries</a>.  Using <a href='xsl.xtp'>XSL</a>, you can create
meaningful tags for your web pages: ct:shopping-cart-summary,
ct:example, ct:sql-query.
</defun>

<defun name='Directives' title="Directives">
<a href='jsp-directives.xtp'>Directives</a> control the processing of
an entire page.  Directive examples include setting a scripting
language, setting an error page, including other documents, and
setting a character encoding.
</defun>

<defun name='Variables' title="Variables">
JSP makes implicit <a href='jsp-variables.xtp'>variables</a>
available to the script.  Scripts can use request, response, session, and
application variables.
</defun>

<defun name='Applications' title="Applications">
<a href='jsp-applications.xtp'>Applications</a> join JSP pages,
script libraries and Java beans into a self-contained web
application.  Applications are controlled by the <a
href='http-config.xtp'>configuration</a> file.
</defun>

