org.apache.struts.taglib.template

Class PutTag


public class PutTag
extends BodyTagSupport

Tag handler for <template:put>, which puts content into request scope.

Version:
$Revision: 1.13 $ $Date: 2002/12/08 06:54:51 $

Author:
David Geary

Field Summary

private String
content
The content's URI (or text).
private String
direct
Determines whether content is included (false) or printed (true).
private String
name
The content's name.
private String
role
The role that the user must be in to store content.

Method Summary

int
doEndTag()
Deprecated. Use Tiles instead.
private String
getActualContent()
Deprecated. Use Tiles instead.
private TagSupport
getAncestor(String className)
Deprecated. Use Tiles instead.
String
getContent()
Deprecated. Use Tiles instead.
String
getDirect()
Deprecated. Use Tiles instead.
String
getName()
Deprecated. Use Tiles instead.
String
getRole()
Deprecated. Use Tiles instead.
private boolean
hasBody()
Deprecated. Use Tiles instead.
void
release()
Deprecated. Use Tiles instead.
void
setContent(String content)
Deprecated. Use Tiles instead.
void
setDirect(String direct)
Deprecated. Use Tiles instead.
void
setName(String name)
Deprecated. Use Tiles instead.
void
setRole(String role)
Deprecated. Use Tiles instead.

Field Details

content

private String content
The content's URI (or text).


direct

private String direct
Determines whether content is included (false) or printed (true). Content is included (false) by default.


name

private String name
The content's name.


role

private String role
The role that the user must be in to store content.

Method Details

doEndTag

public int doEndTag()
            throws JspException

Deprecated. Use Tiles instead.

Process the end tag by putting content into the enclosing insert tag.


getActualContent

private String getActualContent()
            throws JspException

Deprecated. Use Tiles instead.

Returns the content associated with this tag.


getAncestor

private TagSupport getAncestor(String className)
            throws JspException

Deprecated. Use Tiles instead.

Convenience method for locating ancestor tags by class name.

Parameters:
className - The name of the ancestor class.


getContent

public String getContent()

Deprecated. Use Tiles instead.

Get the content attribute.


getDirect

public String getDirect()

Deprecated. Use Tiles instead.

Returns the direct attribute associated with this tag.


getName

public String getName()

Deprecated. Use Tiles instead.

Get the name attribute.


getRole

public String getRole()

Deprecated. Use Tiles instead.

Get the role attribute.


hasBody

private boolean hasBody()

Deprecated. Use Tiles instead.

Returns a boolean indicating whether this tag has a body.


release

public void release()

Deprecated. Use Tiles instead.

Reset member values for reuse. This method calls super.release(), which invokes TagSupport.release(), which typically does nothing.


setContent

public void setContent(String content)

Deprecated. Use Tiles instead.

Set the content's URI (if it's to be included) or text (if it's to be printed).


setDirect

public void setDirect(String direct)

Deprecated. Use Tiles instead.

Set direct to true, and content will be printed directly, instead of included (direct == false).


setName

public void setName(String name)

Deprecated. Use Tiles instead.

Set the content name.


setRole

public void setRole(String role)

Deprecated. Use Tiles instead.

Parameters:
role - The role the user must be in to store content.


Copyright B) 2000-2005 - Apache Software Foundation