Order the Book

coreservlets.tags
Class PrimeTag

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

public class PrimeTag
extends SimplePrimeTag

Generates an N-digit random prime (default N = 50). Extends SimplePrimeTag, adding a length attribute to set the size of the prime. The doStartTag method of the parent class uses the len field to determine the approximate length of the prime.

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

Fields inherited from class coreservlets.tags.SimplePrimeTag
len
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Constructor Summary
PrimeTag()
           
 
Method Summary
 void setLength(String length)
           
 
Methods inherited from class coreservlets.tags.SimplePrimeTag
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
 

Constructor Detail

PrimeTag

public PrimeTag()
Method Detail

setLength

public void setLength(String length)

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive