catlett     01/08/13 16:31:23

  Modified:    random/examples/web random.jsp
  Log:
  updated for the new build
  
  Revision  Changes    Path
  1.2       +41 -22    jakarta-taglibs/random/examples/web/random.jsp
  
  Index: random.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/random/examples/web/random.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- random.jsp        2001/05/21 20:46:28     1.1
  +++ random.jsp        2001/08/13 23:31:23     1.2
  @@ -1,61 +1,80 @@
  -<%@ taglib uri="http://jakarta.apache.org/taglibs/random"; prefix="rand" %>
  +<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
   <html>
  -<%@ page language="java" session="false" %>
  +<%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0"; prefix="rand" %>
        <head>
          <title>Example JSP for the Random taglib</title>
        </head>
        <body bgcolor="#FFFFFF">
  -     <p>Create a random number between 10000000 and 99999999<br>
  -     <rand:number id="random" range="10000000-99999999"/><br>
  +     <p>Create a random number between 10000000 and 99999999<br/>
  +     <rand:number id="random" range="10000000-99999999"/><br/>
   
        <jsp:getProperty name="random" property="random"/></p>
   
  -     <p>Create a random float value<br>
  -     <rand:number id="floater" range="0-1"/><br>
  +     <p>Create a random float value<br/>
  +     <rand:number id="floater" range="0-1"/><br/>
   
        <jsp:getProperty name="floater" property="random"/></p> 
   
  -     <p>Create a random number between 25 and 100<br>
  -     <rand:number id="num25" range="25-100"/><br>
  +     <p>Create a random number between 25 and 100<br/>
  +     <rand:number id="num25" range="25-100"/><br/>
   
        <jsp:getProperty name="num25" property="random"/></p>
   
  -     <p>Create a random string of all the characters and digits<br>
  -     <rand:string id="random1" charset="all"/><br>
  +<!--
  +     <p>Create the same  random number between 25 and 100, only use the 
  +     algorithm and provider attributes to indicate the use of a SecureRandom
  +     object instead of a Random object<br/>
  +     <rand:number id="num25sec" range="25-100" algorithm="SHA1PRNG" 
provider="SUN"/><br/>
   
  +     <jsp:getProperty name="num25sec" property="random"/></p>
  +-->
  +
  +     <p>Create a random string of all the characters and digits<br/>
  +     <rand:string id="random1" charset="all"/><br/>
  +
        <jsp:getProperty name="random1" property="random"/></p>
  +
  +     <p>Get another random string same as above using the jsp:getProperty tag 
again<br/>
  +
  +     <br/><jsp:getProperty name="random1" property="random"/></p>
   
  -     <p>Get another random string same as above using the jsp:getProperty tag 
again<br>
  +<!--
  +     <p>Create the same random string of all the characters and digits, only use
  +     the algorithm and provider attributes to indicate the use of a SecureRandom
  +     object instead of a Random object<br/>
  +     <rand:number id="random1sec" charset="all" algortihm="SHA1PRNG" 
provider="SUN"/><br/>
   
  -     <br><jsp:getProperty name="random1" property="random"/></p>
  +     <jsp:getProperty name="random1sec" property="random"/></p>
  +-->
   
  -     <p>Create a random string that is the default 8 chars long that uses the 
charset a-zA-Z0-9<br>
  +     <p>Create a random string that is the default 8 chars long that uses the 
charset a-zA-Z0-9<br/>
   
  -     <rand:string id="rand" charset="a-zA-Z0-9"/><br>
  +     <rand:string id="rand" charset="a-zA-Z0-9"/><br/>
   
        <jsp:getProperty name="rand" property="random"/></p>
   
  -     <p>Create a random string 15 lowercase letters long<br>
  +     <p>Create a random string 15 lowercase letters long<br/>
   
  -     <rand:string id="random2" length="15" charset="a-z"/><br>
  +     <rand:string id="random2" length="15" charset="a-z"/><br/>
   
        <jsp:getProperty name="random2" property="random"/></p>
   
  -     <p>Create a random string with only caps<br>
  +     <p>Create a random string with only caps<br/>
   
  -     <rand:string id="random3" charset="A-Z"/><br>
  +     <rand:string id="random3" charset="A-Z"/><br/>
   
        <jsp:getProperty name="random3" property="random"/></p>
   
        <p>Create a random string 10 characters long with the charset a-fF-K ! \\ $ % 
# ^ \- * ? notice that the - and \ had to be escaped with a \
  -     <br>
  -     <rand:string id="last" length="10" charset="a-fF-K ! \\ $ % # ^ \- * ?"/><br>
  +     <br/>
  +     <rand:string id="last" length="10" charset="a-fF-K ! \\ $ % # ^ \- * ?"/>
  +     <br/>
   
        <jsp:getProperty name="last" property="random"/></p>
   
  -     <p>Get another random string same as above with the jsp:getProperty tag<br>
  +     <p>Get another random string same as above with the jsp:getProperty tag<br/>
   
  -     <br><jsp:getProperty name="last" property="random"/></p>
  +     <br/><jsp:getProperty name="last" property="random"/></p>
   
   </body>
   </html>
  
  
  

Reply via email to