org.apache.struts.taglib.bean

Class ResourceTag

public class ResourceTag extends TagSupport

Define a scripting variable based on the contents of the specified web application resource.

Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary
protected static intBUFFER_SIZE
Buffer size to use when reading the input stream.
protected Stringid
The name of the scripting variable that will be exposed as a page scope attribute.
protected Stringinput
Return an InputStream to the specified resource if this is non-null.
protected static MessageResourcesmessages
The message resources for this package.
protected Stringname
The module-relative URI of the resource whose contents are to be exposed.
Method Summary
intdoStartTag()
Retrieve the required property and expose it as a scripting variable.
StringgetId()
StringgetInput()
StringgetName()
voidrelease()
Release all allocated resources.
voidsetId(String id)
voidsetInput(String input)
voidsetName(String name)

Field Detail

BUFFER_SIZE

protected static final int BUFFER_SIZE
Buffer size to use when reading the input stream.

id

protected String id
The name of the scripting variable that will be exposed as a page scope attribute.

input

protected String input
Return an InputStream to the specified resource if this is non-null.

messages

protected static MessageResources messages
The message resources for this package.

name

protected String name
The module-relative URI of the resource whose contents are to be exposed.

Method Detail

doStartTag

public int doStartTag()
Retrieve the required property and expose it as a scripting variable.

Throws: JspException if a JSP exception has occurred

getId

public String getId()

getInput

public String getInput()

getName

public String getName()

release

public void release()
Release all allocated resources.

setId

public void setId(String id)

setInput

public void setInput(String input)

setName

public void setName(String name)
Copyright B) 2000-2009 - The Apache Software Foundation