|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.random.RandomStrgTag
RandomStrg tag will create a random string generator accessiable by the jsp:getProperty tag.. <tag> <name>random</name> <tagclass>org.apache.taglibs.random.RandomTag</tagclass> <bodycontent>empty</bodycontent> <info>Creates an variable length random string generator</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>length</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>map</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>charset</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>algorithm</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>provider</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag>
Field Summary |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
RandomStrgTag()
|
Method Summary | |
int |
doStartTag()
implementation of method from the Tag interface that tells the JSP what to do upon encountering the start tag for this tag set |
void |
setAlgorithm(java.lang.String value)
set the algorithm name |
void |
setCharset(java.lang.String value)
set the range of characters to use |
void |
setLength(java.lang.String value)
set the length of the password |
void |
setMap(java.lang.String value)
set the name of the map |
void |
setProvider(java.lang.String value)
set the provider name |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, 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 |
public RandomStrgTag()
Method Detail |
public final int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- thrown when error occurs in processing the body of
this methodpublic final void setMap(java.lang.String value)
value
- name of the hashmap to search for on the server that contains
the keys to compare the random strings topublic final void setLength(java.lang.String value)
value
- length of the random string to be generatedpublic final void setAlgorithm(java.lang.String value)
value
- name of the algorithm to use for a SecureRandom objectpublic final void setProvider(java.lang.String value)
value
- name of the package to check for the algorithmpublic final void setCharset(java.lang.String value)
value
- the range of characters to use could be any char from a-z, A-Z
0-9 or ! @ # $ % ^ & * ( ) _ \- + = [ ] { } \ | ; : ' " , . /
< > ?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |