org.apache.taglibs.dbtags.connection
Class PasswordTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.taglibs.dbtags.connection.PasswordTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class PasswordTag
extends javax.servlet.jsp.tagext.BodyTagSupport

JSP tag password, sets the password for the enclosing connection tag. This tag is optional if the password has been encoded inside the database URL, or if the database does not require a password. The password is read from the indicated initParameter, if the parameter is set, or from the body of the tag if it is not.

JSP Tag Lib Descriptor

 <name>password</name>
 <tagclass>org.apache.taglibs.dbtags.connection.PasswordTag</tagclass>
 <bodycontent>JSP</bodycontent>
 <info>JSP tag password, sets the password for the
 enclosing connection tag.  This tag is optional if the password has
 been encoded inside the database URL, or if the database does not
 require a password.  The password is read from the indicated
 initParameter, if the parameter is set, or from the body of the tag
 if it is not.  The tag body will be trimmed.</info>
   <attribute>
     <name>initParameter</name>
     <required>false</required>
     <rtexprvalue>false</rtexprvalue>
   </attribute>
 

Author:
Morgan Delagrange
See Also:
ConnectionTag, DatabaseURLTag, Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
PasswordTag()
           
 
Method Summary
 int doEndTag()
           
 void release()
           
 void setInitParameter(java.lang.String paramName)
          The name of the init parameter containing the database password.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

PasswordTag

public PasswordTag()
Method Detail

setInitParameter

public void setInitParameter(java.lang.String paramName)
The name of the init parameter containing the database password.

Parameters:
paramName - database password

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspTagException

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.