public class ResourceTag
extends javax.servlet.jsp.tagext.TagSupport
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUFFER_SIZE
Buffer size to use when reading the input stream.
|
protected java.lang.String |
id
The name of the scripting variable that will be exposed as a page scope
attribute.
|
protected java.lang.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 java.lang.String |
name
The module-relative URI of the resource whose contents are to be
exposed.
|
| Constructor and Description |
|---|
ResourceTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag()
Retrieve the required property and expose it as a scripting variable.
|
java.lang.String |
getId() |
java.lang.String |
getInput() |
java.lang.String |
getName() |
void |
release()
Release all allocated resources.
|
void |
setId(java.lang.String id) |
void |
setInput(java.lang.String input) |
void |
setName(java.lang.String name) |
protected static final int BUFFER_SIZE
protected static MessageResources messages
protected java.lang.String id
protected java.lang.String input
protected java.lang.String name
public java.lang.String getId()
getId in class javax.servlet.jsp.tagext.TagSupportpublic void setId(java.lang.String id)
setId in class javax.servlet.jsp.tagext.TagSupportpublic java.lang.String getInput()
public void setInput(java.lang.String input)
public java.lang.String getName()
public void setName(java.lang.String name)
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurredpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportCopyright © 2000–2024 Apache Software Foundation. All rights reserved.