org.apache.struts.taglib.template

Class GetTag


public class GetTag
extends TagSupport

This is the tag handler for <template:get>, which gets content from the request scope and either includes the content or prints it, depending upon the value of the content's direct attribute.

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

Author:
David Geary

Field Summary

private boolean
flush
Should we flush before including this text?
private String
name
The name of the content that this tag includes (or prints).
private String
role
The role that the user must be in to retrieve content.

Method Summary

int
doStartTag()
Deprecated. Use Tiles instead.
boolean
getFlush()
Deprecated. Use Tiles instead.
String
getName()
Deprecated. Use Tiles instead.
String
getRole()
Deprecated. Use Tiles instead.
void
release()
Deprecated. Use Tiles instead.
private void
saveException(Throwable exception)
Deprecated. Use Tiles instead.
void
setFlush(boolean flush)
Deprecated. Use Tiles instead.
void
setName(String name)
Deprecated. Use Tiles instead.
void
setRole(String role)
Deprecated. Use Tiles instead.

Field Details

flush

private boolean flush
Should we flush before including this text?


name

private String name
The name of the content that this tag includes (or prints).


role

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

Method Details

doStartTag

public int doStartTag()
            throws JspException

Deprecated. Use Tiles instead.

Print content named by setName() or include it, depending on the content's direct attribute.


getFlush

public boolean getFlush()

Deprecated. Use Tiles instead.

Get the flush-before-include attribute.


getName

public String getName()

Deprecated. Use Tiles instead.

Get the name attribute.


getRole

public String getRole()

Deprecated. Use Tiles instead.

Get the role attribute.


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.


saveException

private void saveException(Throwable exception)

Deprecated. Use Tiles instead.

Save the specified exception in request scope if there is not already one present.

Parameters:
exception - Exception to be conditionally saved


setFlush

public void setFlush(boolean flush)

Deprecated. Use Tiles instead.

Set the flush-before-include property

Parameters:
flush - The new flush property


setName

public void setName(String name)

Deprecated. Use Tiles instead.

Set the name attribute

Parameters:
name - The name of the content to get.


setRole

public void setRole(String role)

Deprecated. Use Tiles instead.

Set the role attribute

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


Copyright B) 2000-2005 - Apache Software Foundation