org.apache.struts.taglib.html

Class SubmitTag

public class SubmitTag extends BaseHandlerTag

Tag for input fields of type "submit".

Version: $Rev: 164530 $ $Date: 2005-04-25 04:11:07 +0100 (Mon, 25 Apr 2005) $

Field Summary
protected static MessageResourcesmessages
The message resources for this package.
protected Stringproperty
The name of the generated input field.
protected Stringtext
The body content of this tag (if any).
protected Stringvalue
The value of the button label.
Method Summary
intdoAfterBody()
Save the associated label from the body content.
intdoEndTag()
Process the end of this tag.
intdoStartTag()
Process the start of this tag.
protected StringgetDefaultValue()
Return the default value.
protected StringgetElementOpen()
Render the opening element.
StringgetProperty()
Return the property.
StringgetValue()
Return the label value.
protected voidprepareButtonAttributes(StringBuffer results)
Render the button attributes
protected StringprepareName()
Prepare the name element
protected voidprepareValue(StringBuffer results)
Render the value element
voidrelease()
Release any acquired resources.
voidsetProperty(String property)
Set the property name.
voidsetValue(String value)
Set the label value.

Field Detail

messages

protected static MessageResources messages
The message resources for this package.

property

protected String property
The name of the generated input field.

text

protected String text
The body content of this tag (if any).

value

protected String value
The value of the button label.

Method Detail

doAfterBody

public int doAfterBody()
Save the associated label from the body content.

Throws: JspException if a JSP exception has occurred

doEndTag

public int doEndTag()
Process the end of this tag.

Support for Indexed property since Struts 1.1

Throws: JspException if a JSP exception has occurred

doStartTag

public int doStartTag()
Process the start of this tag.

Throws: JspException if a JSP exception has occurred

getDefaultValue

protected String getDefaultValue()
Return the default value.

Returns: The default value if none supplied.

getElementOpen

protected String getElementOpen()
Render the opening element.

Returns: The opening part of the element.

getProperty

public String getProperty()
Return the property.

getValue

public String getValue()
Return the label value.

prepareButtonAttributes

protected void prepareButtonAttributes(StringBuffer results)
Render the button attributes

Parameters: results The StringBuffer that output will be appended to.

prepareName

protected String prepareName()
Prepare the name element

Returns: The element name.

prepareValue

protected void prepareValue(StringBuffer results)
Render the value element

Parameters: results The StringBuffer that output will be appended to.

release

public void release()
Release any acquired resources.

setProperty

public void setProperty(String property)
Set the property name.

Parameters: property The property name

setValue

public void setValue(String value)
Set the label value.

Parameters: value The label value

Copyright B) 2000-2007 - The Apache Software Foundation