Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

counter for JSP page

 
Tayal Rohit
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How you can set a counter in a jsp , that can tell u , how many times that jsp get called.

[Bear edit: better subject title]
[ March 07, 2005: Message edited by: Bear Bibeault ]
 
evan theon
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are many possibilities for it n how do u want the counter to be appears? in a textfield, in an image, or something else? and do u want the counter to be saved? where? in the bean or database or session's attribute? please be more specific so that we can help u

regards,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tayal Rohit and evan theon,

JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

thanks,
bear
Forum Bartender
[ March 07, 2005: Message edited by: Bear Bibeault ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by evan theon:
there are many possibilities for it n how do u want the counter to be appears? in a textfield, in an image, or something else? and do u want the counter to be saved? where? in the bean or database or session's attribute? please be more specific so that we can help u


Image: not a good option
Session: not going to help you here
Bean: where you persist that bean?
Database: fine.
File: fine.
Some application scope attribute: fine, but would be lost after servers' shutdown.
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!