Order the Book

coreservlets.tags
Class SimplePrimeTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--coreservlets.tags.SimplePrimeTag
Direct Known Subclasses:
PrimeTag

public class SimplePrimeTag
extends TagSupport

Generates a prime of approximately 50 digits. (50 is actually the length of the random number generated -- the first prime above that number will be returned.)

Taken from Core Servlets and JavaServer Pages from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. © 2000 Marty Hall; may be freely used or adapted.

See Also:
Serialized Form

Field Summary
protected  int len
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Constructor Summary
SimplePrimeTag()
           
 
Method Summary
 int doStartTag()
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

len

protected int len
Constructor Detail

SimplePrimeTag

public SimplePrimeTag()
Method Detail

doStartTag

public int doStartTag()
Overrides:
doStartTag in class TagSupport

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive