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:08, 8 March 2002 (added link to output). 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>

<%= "expanded inline data " + 1 %>

...