org.apache.struts.taglib
Class GetPropertyTag

org.apache.struts.taglib.GetPropertyTag

public class GetPropertyTag

Expose the value of a bean property as a scripting variable.

Version:
$Revision: 1.7 $ $Date: 2001/05/20 01:19:02 $
Author:
Craig R. McClanahan

Field Summary
private  java.lang.String id
          The name of the scripting variable to be exposed.
protected static MessageResources messages
          The message resources for this package.
private  java.lang.String name
          The name of the bean owning the property.
private  java.lang.String property
          The property name to be exposed.
 
Constructor Summary
GetPropertyTag()
           
 
Method Summary
 int doStartTag()
          Retrieve the required property and expose it as a scripting variable.
 java.lang.String getId()
          Return the name of the scripting variable.
 java.lang.String getName()
          Return the name of the bean.
 java.lang.String getProperty()
          Return the property name.
 void release()
          Release any acquired resources.
 void setId(java.lang.String id)
          Set the name of the scripting variable.
 void setName(java.lang.String name)
          Set the name of the bean.
 void setProperty(java.lang.String property)
          Set the property name.
 

Field Detail

id

private java.lang.String id
The name of the scripting variable to be exposed.

messages

protected static MessageResources messages
The message resources for this package.

name

private java.lang.String name
The name of the bean owning the property.

property

private java.lang.String property
The property name to be exposed.
Constructor Detail

GetPropertyTag

public GetPropertyTag()
Method Detail

getId

public java.lang.String getId()
Return the name of the scripting variable.

setId

public void setId(java.lang.String id)
Set the name of the scripting variable.
Parameters:
id - The new name of the scripting variable

getName

public java.lang.String getName()
Return the name of the bean.

setName

public void setName(java.lang.String name)
Set the name of the bean.
Parameters:
name - The new name

getProperty

public java.lang.String getProperty()
Return the property name.

setProperty

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

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Retrieve the required property and expose it as a scripting variable.
Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.


Copyright © 2000-2002 - Apache Software Foundation