|
||||||||||
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.PutAttributeTag
public class PutAttributeTag
Put 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 | |
---|---|
PutAttributeTag()
|
Method Summary | |
---|---|
void |
doTag()
|
String |
getExpression()
Returns the expression to calculate the value from. |
String |
getName()
Returns the name of the attribute. |
String |
getRole()
Returns the role to check. |
String |
getType()
Returns content type: string, template or definition. |
Object |
getValue()
Returns the attribute value. |
boolean |
isCascade()
Checks if the attribute should be cascaded to nested definitions. |
void |
setCascade(boolean cascade)
Sets the property that tells if the attribute should be cascaded to nested definitions. |
void |
setExpression(String expression)
Sets the expression to calculate the value from. |
void |
setName(String name)
Sets the name of the attribute. |
void |
setRole(String role)
Sets the role to check. |
void |
setType(String type)
Sets content type: string, template or definition. |
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 PutAttributeTag()
Method Detail |
---|
public String getName()
public void setName(String name)
name
- The name of the attribute.public boolean isCascade()
true
if the attribute will be cascaded.public void setCascade(boolean cascade)
cascade
- true
if the attribute will be cascaded.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 expressionpublic String getType()
Returns content type: string, template or definition.
<insert attribute="attributeName">
tag, where
'attributeName' is the name used for this tag.
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 |