|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.taglib.template.PutTag
Tag handler for <template:put>, which puts content into request scope.
Field Summary | |
private java.lang.String |
content
The content's URI (or text). |
private java.lang.String |
direct
Determines whether content is included (false) or printed (true). |
private java.lang.String |
name
The content's name. |
private java.lang.String |
role
The role that the user must be in to store content. |
Constructor Summary | |
PutTag()
|
Method Summary | |
int |
doEndTag()
Process the end tag by putting content into the enclosing insert tag. |
private java.lang.String |
getActualContent()
Returns the content associated with this tag. |
private javax.servlet.jsp.tagext.TagSupport |
getAncestor(java.lang.String className)
Convenience method for locating ancestor tags by class name. |
java.lang.String |
getContent()
Get the content attribute. |
java.lang.String |
getDirect()
Returns the direct attribute associated with this tag. |
java.lang.String |
getName()
Get the name attribute. |
java.lang.String |
getRole()
Get the role attribute. |
private boolean |
hasBody()
Returns a boolean indicating whether this tag has a body. |
void |
release()
Reset member values for reuse. |
void |
setContent(java.lang.String content)
Set the content's URI (if it's to be included) or text (if it's to be printed). |
void |
setDirect(java.lang.String direct)
Set direct to true, and content will be printed directly, instead of included (direct == false). |
void |
setName(java.lang.String name)
Set the content name. |
void |
setRole(java.lang.String role)
|
Field Detail |
private java.lang.String name
private java.lang.String role
private java.lang.String content
private java.lang.String direct
Constructor Detail |
public PutTag()
Method Detail |
public void setName(java.lang.String name)
public void setRole(java.lang.String role)
name
- The role the user must be in to store content.public void setContent(java.lang.String content)
public void setDirect(java.lang.String direct)
public java.lang.String getName()
public java.lang.String getRole()
public java.lang.String getContent()
public java.lang.String getDirect()
public int doEndTag() throws javax.servlet.jsp.JspException
JspException
- if this tag is not enclosed by
<template:insert>.public void release()
private java.lang.String getActualContent() throws javax.servlet.jsp.JspException
private boolean hasBody()
private javax.servlet.jsp.tagext.TagSupport getAncestor(java.lang.String className) throws javax.servlet.jsp.JspException
className
- The name of the ancestor class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |