• CONTEST ALERT - Experience the power of DDR5 memory with Kingston Click for details

Executing JSP

Status
Not open for further replies.

nithinks

True Techie
hello members,
i want to execute this code..

<%! int pageCount = 0;
void addCount()
{
pageCount++;
}
%>
<html>
<title>PageCount.jsp</title>
<body>
<% addCount(); %>
This page is visited <%= pageCount %> times
</body>
</html>
----------------------------------------
When i saves this as .jsp the browser displays only "This page is visited"
but not the count... can anyone give me the details how i can execute JSP s?
 
Last edited:
Status
Not open for further replies.
Top Bottom