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 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.

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)

Field Details

BUFFER_SIZE

protected static final int BUFFER_SIZE
Buffer size to use when reading the input stream.
Field Value:
256

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 Details

doStartTag

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

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-2007 - The Apache Software Foundation