org.apache.struts.taglib
Class OptionTag

org.apache.struts.taglib.OptionTag

public final class OptionTag

Tag for select options. The body of this tag is presented to the user in the option list, while the value attribute is the value returned to the server if this option is selected.

Version:
$Revision: 1.4 $ $Date: 2000/08/01 20:03:34 $
Author:
Craig R. McClanahan

Field Summary
protected static MessageResources messages
          The message resources for this package.
private  java.lang.String value
          The server value for this option.
 
Constructor Summary
OptionTag()
           
 
Method Summary
 int doEndTag()
          Process the end of this tag.
 int doStartTag()
          Process the start of this tag.
 java.lang.String getValue()
          Return the server value.
 void release()
          Release any acquired resources.
 void setValue(java.lang.String value)
          Set the server value.
 

Field Detail

messages

protected static MessageResources messages
The message resources for this package.

value

private java.lang.String value
The server value for this option.
Constructor Detail

OptionTag

public OptionTag()
Method Detail

getValue

public java.lang.String getValue()
Return the server value.

setValue

public void setValue(java.lang.String value)
Set the server value.
Parameters:
value - The new server value

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start of this tag.
Throws:
JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end of this tag.
Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.


Copyright © 2000-2002 - Apache Software Foundation