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 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.
|
Constructor and Description |
---|
ResourceTag() |
Modifier and Type | Method and Description |
---|---|
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) |
protected static final int BUFFER_SIZE
protected static MessageResources messages
protected String id
protected String input
protected String name
public String getId()
getId
in class javax.servlet.jsp.tagext.TagSupport
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public String getInput()
public void setInput(String input)
public String getName()
public void setName(String name)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.