Overview
Resin 3.0

Features
Installation
Configuration
Web Applications
IOC/AOP
Resources
JSP
Quercus
Servlets and Filters
Databases
Admin (JMX)
CMP
EJB
Amber
EJB 3.0
Security
XML and XSLT
XTP
JMS
Performance
Protocols
Third-party
Troubleshooting/FAQ

Introduction
JSP Compilation
Reference
Tutorials
Articles
FAQ
JSP
JSP
JSP Compilation

Resin supports Sun's JSP 2.0 specification. JSP creates an HTML page from HTML template text, tag libraries and scripting actions. Resin supports the JSTL standard tag library, the development of custom tag libraries, and Java as the scripting language.

<% String title="Counter"; %>
<html>
        
<head>
<title><%= title %></title>
</head>
<body bgcolor='white'>
<jsp:useBean id='counter' class='Counter' scope='application'/>
<h1><%= title %></h1>

Welcome, visitor <%= counter.getHit() %>!
</body>
</html>

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

<jsp:scriptlet>String title="Counter"; </jsp:scriptlet>
<html>
<head>
<title><jsp:expression>title</jsp:expression></title>
</head>
<body bgcolor='white'>
<jsp:useBean id='counter' class='Counter' scope='application'/>
<h1><jsp:expression> title </jsp:expression></h1>

Welcome, visitor <jsp:expression> counter.getHit()</jsp:expression>!
</body>
</html>


JSP
JSP
JSP Compilation
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.