You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Rich Catlett <ri...@more.net> on 2001/05/11 21:40:11 UTC

A new taglib for submission

I wrote a new taglib that does random number and random string generation.
It works that when you put the tag into the page it sets a generator for
the random string or number into the page scope, and then subsequent calls
to the jsp:getProperty tag return a new randomly created string or number.
For the random number you can set the range.  For the random string you
can set the length of the string the charset to choose from when creating
the random string which defaults to a-zA-Z0-9.  It is possible to set the
charset to any of the characters on a keyboard.  The final thing you can
set for the random string is the name of a hashmap that already exists,
the generator will then check the new randomly generated strings against
the keys in the hashmap to make sure each string is unique.  A zip file is
attached.

---------------------------------------------------------------------
Rich Catlett        rich@more.net |  Confuscious say "Man who stand |
Programmer                        |   on toilet, high on pot!"      |
                                  |                                 |
---------------------------------------------------------------------