aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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!!
 
jQuery in Action, 2nd edition
 
subject: EXAM STUDY KIT QUESTION - COUNTER.JSP PAGE 177