Jump to content

JavaServer page example input

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sfmontyo (talk | contribs) at 11:09, 8 March 2002 (tried to fix formatting). 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; %>
<t a b le>
<t r><t d><%= "expanded inline data " + 1 %></t d></t r>
...