Jump to content

JavaServer page example input

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 66.130.176.94 (talk) at 14:04, 19 December 2002 (fr). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Below is an example of a JavaServer Page file. Its resulting output can be found here.

 <%@ page errorPage="myerror.jsp" %>
 <%@ page import="com.foo.bar" %>

 <html>
 <head>
 <%! int serverInstanceVariable = 1;%>
 ...
 <% int localStackBasedVariable = 1; %>
 <table>
 <tr><td><%= "expanded inline data " + 1 %></td></tr>
 ...