org.apache.struts.taglib.template
Class GetTag

org.apache.struts.taglib.template.GetTag

public class GetTag

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.10 $ $Date: 2001/04/29 05:59:58 $
Author:
David Geary

Field Summary
private  boolean flush
          Should we flush before including this text?
private  java.lang.String name
          The name of the content that this tag includes (or prints).
private  java.lang.String role
          The role that the user must be in to retrieve content.
 
Constructor Summary
GetTag()
           
 
Method Summary
 int doStartTag()
          Print content named by setName() or include it, depending on the content's direct attribute.
 boolean getFlush()
          Get the flush-before-include attribute.
 java.lang.String getName()
          Get the name attribute.
 java.lang.String getRole()
          Get the role attribute.
 void release()
          Reset member values for reuse.
private  void saveException(java.lang.Throwable exception)
          Save the specified exception in request scope if there is not already one present.
 void setFlush(boolean flush)
          Set the flush-before-include property
 void setName(java.lang.String name)
          Set the name attribute
 void setRole(java.lang.String role)
          Set the role attribute
 

Field Detail

flush

private boolean flush
Should we flush before including this text?

name

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

role

private java.lang.String role
The role that the user must be in to retrieve content.
Constructor Detail

GetTag

public GetTag()
Method Detail

setFlush

public void setFlush(boolean flush)
Set the flush-before-include property
Parameters:
flush - The new flush property

setName

public void setName(java.lang.String name)
Set the name attribute
Parameters:
name - The name of the content to get.

setRole

public void setRole(java.lang.String role)
Set the role attribute
Parameters:
name - The role the user must be in to retrieve content.

getFlush

public boolean getFlush()
Get the flush-before-include attribute.

getName

public java.lang.String getName()
Get the name attribute.

getRole

public java.lang.String getRole()
Get the role attribute.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Print content named by setName() or include it, depending on the content's direct attribute.

release

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

saveException

private void saveException(java.lang.Throwable exception)
Save the specified exception in request scope if there is not already one present.
Parameters:
exception - Exception to be conditionally saved


Copyright © 2000-2002 - Apache Software Foundation