Caucho maker of Resin Server | Application Server (Java EE Certified) and Web Server


 

Resin Documentation

home company blog wiki docs 
app server web server 
health cloud java ee pro 
 Resin Server | Application Server (Java EE Certified) and Web Server
 

overview


JSP creates a document (such as HTML) from template text and scripting actions. Template text is returned verbatim to the requesting client, and actions are used to fill in dynamic values and do things conditionallly.

JSP

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>


Copyright © 1998-2012 Caucho Technology, Inc. All rights reserved. Resin ® is a registered trademark. Quercustm, and Hessiantm are trademarks of Caucho Technology.

Cloud-optimized Resin Server is a Java EE certified Java Application Server, and Web Server, and Distributed Cache Server (Memcached).
Leading companies worldwide with demand for reliability and high performance web applications including SalesForce.com, CNET, DZone and many more are powered by Resin.

home company blog wiki docs 
app server web server 
health cloud java ee pro