RewriteName Class

com.bea.wlw.netui.tags.html
RewriteName Class

public class RewriteName

    extends AbstractBaseTag

Allow a tag name, typically either an id or name attribute, to participate in URL rewritting. Some containers such as WebLogic Portal rewrite names so they are unique. This tag will cause the name to be made available from the getNetuiTagName( tagId, tag ) JavaScript function (which is written to the page by the <netui:html> tag).

Attribute Descriptions
AttributeRequiredRuntime Expression Evaluation Data Bindable
nameYesNoNo
The value of the name which will be rewritten. The real name will be output and may be looked up using 'name'.
resultIdNoNoNo
A name that will cause the real name to be stored into the page context under this name.

Related Topics

<netui:rewrite...> Tag Samples
RewriteURL


Hierarchy
Object
  TagSupport
    BodyTagSupport
      AbstractBaseTag
        RewriteName
All Implemented Interfaces

BodyTag, IterationTag, Serializable, Tag

Field Summary

   
Fields from  com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, CLASS, ID, JAVASCRIPT_STATUS, NAME, NETUI_UNIQUE_CNT, ONCLICK, ONDBLCLICK, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, STYLE, TABINDEX
 
Fields from  javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

RewriteName()

 

Method Summary

public int
doStartTag()
Pass the name attribute to the URLRewriter and output the returned value.
public String
getName()
Gets the name of that should be rewritten.
public String
getResultId()
Gets the resultId.
public String
getTagName()
Return the name of the Tag.
protected void
localRelease()
Release any acquired resources.
public void
setName(String name)
Sets the name to be rewritten.
public void
setResultId(String resultId)
Sets the resultId which, if non-null, will store the real name in the page context under the resultId name;
 
Methods from  com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, evaluateAttributeToString, filter, filter, getJavaScriptUtils, getNearestForm, getScriptReporter, getUserLocale, registerTagError, release, renderAttribute, rewriteName, write
 
Methods from  javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Constructor Detail

RewriteName

public RewriteName()
 

Method Detail

doStartTag() Method

public int doStartTag()
throws JspException
Pass the name attribute to the URLRewriter and output the returned value. Updates the HTML tag to output the mapping.

Overrides
BodyTagSupport.doStartTag()

Exceptions

JspException
if a JSP exception has occurred

getName() Method

public String getName()
Gets the name of that should be rewritten.

Returns

the parameter name.

getResultId() Method

public String getResultId()
Gets the resultId. This is the name that the real name that will be used to store the real name in the page context.

Returns

the resultId

getTagName() Method

public String getTagName()
Return the name of the Tag.

Overrides
AbstractBaseTag.getTagName()

localRelease() Method

protected void localRelease()
Release any acquired resources.

Overrides
AbstractBaseTag.localRelease()

setName(String) Method

public void setName(String name)
Sets the name to be rewritten.

Parameters

name
- the parameter name.

setResultId(String) Method

public void setResultId(String resultId)
Sets the resultId which, if non-null, will store the real name in the page context under the resultId name;

Parameters

resultId
- the parameter name.