|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.taglib.template.GetTag
This is the tag handler for <template:get>, which gets content from the request scope and either includes the content or prints it, depending upon the value of the content's direct attribute.
Field Summary | |
private boolean |
flush
Should we flush before including this text? |
private java.lang.String |
name
The name of the content that this tag includes (or prints). |
private java.lang.String |
role
The role that the user must be in to retrieve content. |
Constructor Summary | |
GetTag()
|
Method Summary | |
int |
doStartTag()
Print content named by setName() or include it, depending on the content's direct attribute. |
boolean |
getFlush()
Get the flush-before-include attribute. |
java.lang.String |
getName()
Get the name attribute. |
java.lang.String |
getRole()
Get the role attribute. |
void |
release()
Reset member values for reuse. |
private void |
saveException(java.lang.Throwable exception)
Save the specified exception in request scope if there is not already one present. |
void |
setFlush(boolean flush)
Set the flush-before-include property |
void |
setName(java.lang.String name)
Set the name attribute |
void |
setRole(java.lang.String role)
Set the role attribute |
Field Detail |
private boolean flush
private java.lang.String name
private java.lang.String role
Constructor Detail |
public GetTag()
Method Detail |
public void setFlush(boolean flush)
flush
- The new flush propertypublic void setName(java.lang.String name)
name
- The name of the content to get.public void setRole(java.lang.String role)
name
- The role the user must be in to retrieve content.public boolean getFlush()
public java.lang.String getName()
public java.lang.String getRole()
public int doStartTag() throws javax.servlet.jsp.JspException
public void release()
private void saveException(java.lang.Throwable exception)
exception
- Exception to be conditionally saved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |