org.apache.struts.taglib.tiles

Class AttributeToScopeTag


public final class AttributeToScopeTag
extends TagSupport

Custom tag that puts component's attributes in a scope (request, page, ...).

Field Summary

private String
property
The property name to be exposed.
private int
scope
The scope value.
private String
scopeName
The scope name.

Method Summary

int
doEndTag()
Clean up after processing this enumeration.
int
doStartTag()
Expose the requested property from component context.
String
getProperty()
Return the property name.
void
release()
Release all allocated resources.
void
setProperty(String property)
Set the property name.
void
setScope(String scope)
Set the scope.

Field Details

property

private String property
The property name to be exposed.

scope

private int scope
The scope value.

scopeName

private String scopeName
The scope name.

Method Details

doEndTag

public int doEndTag()
            throws JspException
Clean up after processing this enumeration.

doStartTag

public int doStartTag()
            throws JspException
Expose the requested property from component context.

getProperty

public String getProperty()
Return the property name.

release

public void release()
Release all allocated resources.

setProperty

public void setProperty(String property)
Set the property name.
Parameters:
property - The property name

setScope

public void setScope(String scope)
Set the scope.
Parameters:
scope - The new scope

Copyright B) 2000-2007 - The Apache Software Foundation