This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EXAM STUDY KIT QUESTION - COUNTER.JSP  PAGE 177 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "EXAM STUDY KIT QUESTION - COUNTER.JSP  PAGE 177" Watch "EXAM STUDY KIT QUESTION - COUNTER.JSP  PAGE 177" New topic
Author

EXAM STUDY KIT QUESTION - COUNTER.JSP PAGE 177

Wayne Hatayama
Greenhorn

Joined: Jan 31, 2002
Posts: 12
On page 177 is a simple 7 line jsp, that counts the number of times a page is accessed. I always get "Welcome! Your are visitor numer 1". I'm using the exact jsp source from the book's CD. Why isn't the count increasing on each access of the page?
Satish Malisetty
Greenhorn

Joined: Jun 15, 2004
Posts: 3
Are you hitting the Reload or Refreshing the Page ? May be it is giving you the cached version.
Wayne Hatayama
Greenhorn

Joined: Jan 31, 2002
Posts: 12
Thank You!! Satish

Hitting the refresh button does cause the counter to increment properly.

I was puting the cursor in the address field of IE and hitting enter.

Thanks again!!
 
wood burning stoves
 
subject: EXAM STUDY KIT QUESTION - COUNTER.JSP PAGE 177
 
Similar Threads
roles in struts
How to obtain infomations in SIM Cards wth J2ME?
Struts2, DisplayTags OGNL-error
Connection Pooling in Borland App Server
Reports in JSP