aspose file tools*
The moose likes Servlets and the fly likes JSP declaration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP declaration" Watch "JSP declaration" New topic
Author

JSP declaration

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, can some JSP gurus help me understand why the following JSP increment by 3 every time we reload?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>JSP Declaration</TITLE>
<META NAME="Generator" CONTENT="TextPad 4.0">
<META NAME="Author" CONTENT="Jason">
<META NAME="Keywords" CONTENT="JSP, Java, Server Pages, servlets">
<META NAME="Description" CONTENT="A simple example that describes how declartion works in JSP">
<LINK REL=STYLESHEET
HREF="JSP-Style.css"
TYPE="text/css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF" BACKGROUND="?">
<H2>JSP Declaration</H2>
<%!private int accessNo;%>
This page has been accessed
<%=accessNo++%> times.
</BODY>
</HTML>

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP declaration