public class PutAttributeTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Put an attribute in enclosing attribute container tag.
Enclosing attribute container tag can be :
PutAttributeTagParent
interface. Exception is thrown if no appropriate tag can be found.
Put tag can have following atributes :
Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.
Constructor and Description |
---|
PutAttributeTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag() |
String |
getExpression()
Getter for expression property.
|
String |
getName()
Getter for name property.
|
String |
getRole()
Getter for role property.
|
String |
getType()
Getter for type property.
|
Object |
getValue()
Getter for value property.
|
boolean |
isCascade()
Getter for cascade property.
|
void |
setCascade(boolean cascade)
Setter for cascade property.
|
void |
setExpression(String expression)
Setter for expression property.
|
void |
setName(String name)
Setter for name property.
|
void |
setRole(String role)
Setter for role property.
|
void |
setType(String type)
Setter for type property.
|
void |
setValue(Object value)
Setter for value property.
|
public String getName()
public void setName(String name)
name
- The name of the attribute to put.public Object getValue()
public void setValue(Object value)
value
- The value of the attribute. Use this parameter, or
expression, or body.public String getExpression()
public void setExpression(String expression)
expression
- The expression to calculate the value from. Use this
parameter, or value, or body.public String getRole()
public void setRole(String role)
role
- A comma-separated list of roles. If present, the attribute
will be rendered only if the current user belongs to one of the roles.public String getType()
public void setType(String type)
type
- The type (renderer) of the attribute.public boolean isCascade()
true
the attribute will be cascaded to all nested attributes.public void setCascade(boolean cascade)
cascade
- If true
the attribute will be cascaded to all nested attributes.public void doTag() throws javax.servlet.jsp.JspException, IOException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
IOException
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.