|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.SimpleTagSupport org.apache.tiles.jsp.taglib.AddAttributeTag
public class AddAttributeTag
Adds an attribute in enclosing attribute container tag.
Enclosing attribute container tag can be :
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 Summary | |
---|---|
AddAttributeTag()
|
Method Summary | |
---|---|
void |
doTag()
|
String |
getExpression()
Returns the expression to calculate the value from. |
String |
getRole()
Returns the role to check. |
String |
getType()
Deprecated. Do not use, ignored. |
Object |
getValue()
Returns the attribute value. |
void |
setExpression(String expression)
Sets the expression to calculate the value from. |
void |
setRole(String role)
Sets the role to check. |
void |
setType(String type)
Deprecated. Do not use, ignored. |
void |
setValue(Object value)
Sets the attribute value. |
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddAttributeTag()
Method Detail |
---|
public String getRole()
public void setRole(String role)
role
- The role to check.public Object getValue()
public void setValue(Object value)
value
- Attribute value. Can be a String or Object.public String getExpression()
public void setExpression(String expression)
expression
- The expression@Deprecated public String getType()
Returns content type: string, template or definition.
<insert attribute="attributeName">
tag, where
'attributeName' is the name used for this tag.
@Deprecated public void setType(String type)
Sets content type: string, template or definition.
<insert attribute="attributeName">
tag, where
'attributeName' is the name used for this tag.
type
- The attribute type.public void doTag() throws JspException, IOException
doTag
in interface SimpleTag
doTag
in class SimpleTagSupport
JspException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |