org.apache.struts.taglib.template
Class PutTag

java.lang.Object
  extended byBodyTagSupport
      extended byorg.apache.struts.taglib.template.PutTag

Deprecated. Use Tiles instead.

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
See Also:
Serialized Form

Field Summary
private  java.lang.String content
          Deprecated. The content's URI (or text).
private  java.lang.String direct
          Deprecated. Determines whether content is included (false) or printed (true).
private  java.lang.String name
          Deprecated. The content's name.
private  java.lang.String role
          Deprecated. The role that the user must be in to store content.
 
Constructor Summary
PutTag()
          Deprecated.  
 
Method Summary
 int doEndTag()
          Deprecated. Use Tiles instead.
private  java.lang.String getActualContent()
          Deprecated. Use Tiles instead.
private  TagSupport getAncestor(java.lang.String className)
          Deprecated. Use Tiles instead.
 java.lang.String getContent()
          Deprecated. Use Tiles instead.
 java.lang.String getDirect()
          Deprecated. Use Tiles instead.
 java.lang.String getName()
          Deprecated. Use Tiles instead.
 java.lang.String getRole()
          Deprecated. Use Tiles instead.
private  boolean hasBody()
          Deprecated. Use Tiles instead.
 void release()
          Deprecated. Use Tiles instead.
 void setContent(java.lang.String content)
          Deprecated. Use Tiles instead.
 void setDirect(java.lang.String direct)
          Deprecated. Use Tiles instead.
 void setName(java.lang.String name)
          Deprecated. Use Tiles instead.
 void setRole(java.lang.String role)
          Deprecated. Use Tiles instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Deprecated. 
The content's name.


role

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


content

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


direct

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

Constructor Detail

PutTag

public PutTag()
Deprecated. 
Method Detail

setName

public void setName(java.lang.String name)
Deprecated. Use Tiles instead.

Set the content name.


setRole

public void setRole(java.lang.String role)
Deprecated. Use Tiles instead.

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

setContent

public void setContent(java.lang.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(java.lang.String direct)
Deprecated. Use Tiles instead.

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


getName

public java.lang.String getName()
Deprecated. Use Tiles instead.

Get the name attribute.


getRole

public java.lang.String getRole()
Deprecated. Use Tiles instead.

Get the role attribute.


getContent

public java.lang.String getContent()
Deprecated. Use Tiles instead.

Get the content attribute.


getDirect

public java.lang.String getDirect()
Deprecated. Use Tiles instead.

Returns the direct attribute associated with this tag.


doEndTag

public int doEndTag()
             throws JspException
Deprecated. Use Tiles instead.

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

Throws:
JspException - if this tag is not enclosed by <template:insert>.

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.


getActualContent

private java.lang.String getActualContent()
                                   throws JspException
Deprecated. Use Tiles instead.

Returns the content associated with this tag.

Throws:
JspException

hasBody

private boolean hasBody()
Deprecated. Use Tiles instead.

Returns a boolean indicating whether this tag has a body.


getAncestor

private TagSupport getAncestor(java.lang.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.
Throws:
JspException


Copyright ? 2000-2004 - Apache Software Foundation