Resin 1.1
FAQ
Reference
JavaDoc
Demo
Java Tutorial
Getting Started
Configuration
Servlet
JSP
XTP/XSL
JavaScript
JS Library
Directives
Actions
Variables
Applications
JSP
Resin supports Sun's JSP 1.0 specification. JSP creates an HTML page from HTML template text and scripting actions. Resin supports Java and JavaScript as scripting languages for JSP pages.
<%@ page language=javascript %> <% var title='Counter' %> <html> <head> <title><%= title %> </head> <body bgcolor='white'> <jsp:useBean id='counter' class='Counter' scope='application'/> <h1><%= title %></h1> Welcome, visitor <%= counter.hit %>! </body></html>
JSP supports an equivalent XML syntax. The XML has the benefit of consistency with the price of some extra verbosity.
<jsp:directive.page language=javascript/> <jsp:scriptlet>var title='Counter' %</jsp:scriptlet> <html> <head> <title><jsp:expression>title</jsp:expression/> </head> <body bgcolor='white'> <jsp:useBean id='counter' class='Counter' scope='application'/> <h1><jsp:expression> title </jsp:expression></h1> Welcome, visitor <jsp:expression> counter.hit</jsp:expression>! </body></html>
### Custom Tag Libraries
Resin encourages the creation of custom tag libraries. Using XSL, you can create meaningful tags for your web pages: ct:shopping-cart-summary, ct:example, ct:sql-query.
### Directives
Directives 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.
### Actions
Actions produce dynamic content. Actions range from printing the a script expression, to creating and storing a Java Bean.
### Variables
JSP makes implicit variables available to the script. Scripts can use request, response, session, and application variables.
### Applications
Applications join JSP pages, script libraries and Java beans into a self-contained web application. Applications are controlled by the configuration file.
Servlet |  | Directives
Copyright © 1998-2000 Caucho Technology. All rights reserved. Last modified: Thu, 23 Dec 1999 20:23:48 -0800 (PST)