• Post Reply Bookmark Topic Watch Topic
  • New Topic

counter doesnt work

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i quote a Visualbuilder.com jsp tutorial:

if i run this example, counter allwy stays at zero!

i rewrote the code, adding, at the bottom:


my Q: is this the correct way?

TiA
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct, but you might want to increment the counter before displaying it.
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so that first visit shows 1 instead of 0, of course

thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!