JAVA
JSP| first example
An example for implementing the counter in JSP
Copy the code in text area and run on your tomcat as a JSP page
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
Jsp_FirstExample
<%! int counter=0; %> <%counter++; %> This is an example of a simple counter, in a jsp page. Number of times this page is visited: <%=counter %>
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/