|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.bean.ResourceTag
public class ResourceTag
Define a scripting variable based on the contents of the specified web application resource.
| Field Summary | |
|---|---|
protected static int |
BUFFER_SIZE
Buffer size to use when reading the input stream. |
protected String |
id
The name of the scripting variable that will be exposed as a page scope attribute. |
protected String |
input
Return an InputStream to the specified resource if this is non-null. |
protected static MessageResources |
messages
The message resources for this package. |
protected String |
name
The module-relative URI of the resource whose contents are to be exposed. |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
ResourceTag()
|
|
| Method Summary | |
|---|---|
int |
doStartTag()
Retrieve the required property and expose it as a scripting variable. |
String |
getId()
|
String |
getInput()
|
String |
getName()
|
void |
release()
Release all allocated resources. |
void |
setId(String id)
|
void |
setInput(String input)
|
void |
setName(String name)
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int BUFFER_SIZE
protected static MessageResources messages
protected String id
protected String input
protected String name
| Constructor Detail |
|---|
public ResourceTag()
| Method Detail |
|---|
public String getId()
getId in class TagSupportpublic void setId(String id)
setId in class TagSupportpublic String getInput()
public void setInput(String input)
public String getName()
public void setName(String name)
public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspException - if a JSP exception has occurredpublic void release()
release in interface Tagrelease in class TagSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||