Jump to content

JavaServer page example input

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pearle (talk | contribs) at 09:53, 24 August 2005 (Changing {{cleanup}} to {{cleanup-date|November 2004}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

You must add a |reason= parameter to this Cleanup template – replace it with {{Cleanup|November 2004|reason=<Fill reason here>}}, or remove the Cleanup template.
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>
 ...

Template:Interwiki-category-check