org.apache.struts.taglib.html
public class FormTag extends TagSupport
Version: $Rev: 331056 $ $Date: 2005-11-06 01:29:01 +0000 (Sun, 06 Nov 2005) $
Field Summary | |
---|---|
protected String | acceptCharset
The list of character encodings for input data that the server should
accept. |
protected String | action
The action URL to which this form should be submitted, if any. |
protected String | beanName
The name of the form bean to (create and) use. |
protected String | beanScope
The scope of the form bean to (create and) use. |
protected String | beanType
The type of the form bean to (create and) use. |
boolean | disabled Controls whether child controls should be 'disabled'. |
protected String | enctype
The content encoding to be used on a POST submit. |
protected String | focus
The name of the field to receive focus, if any. |
protected String | focusIndex
The index in the focus field array to receive focus. |
protected static String | lineEnd
The line ending string. |
protected ActionMapping | mapping
The ActionMapping defining where we will be submitting this form |
protected static MessageResources | messages
The message resources for this package. |
protected String | method
The request method used when submitting this form. |
protected ModuleConfig | moduleConfig
The module configuration for our module. |
protected String | onreset
The onReset event script. |
protected String | onsubmit
The onSubmit event script. |
protected boolean | readonly Controls whether child controls should be 'readonly'. |
protected boolean | scriptLanguage
Include language attribute in the focus script's <script> element. |
protected ActionServlet | servlet
The ActionServlet instance we are associated with (so that we can
initialize the servlet property on any form bean that
we create). |
protected String | style
The style attribute associated with this tag. |
protected String | styleClass
The style class associated with this tag. |
protected String | styleId
The identifier associated with this tag. |
protected String | target
The window target. |
Method Summary | |
---|---|
int | doEndTag()
Render the end of this form.
|
int | doStartTag()
Render the beginning of this form.
|
String | getAcceptCharset()
Return the list of character encodings accepted. |
String | getAction()
Return the action URL to which this form should be submitted. |
String | getBeanName()
Return the name of the form bean corresponding to this tag. |
String | getEnctype()
Return the content encoding used when submitting this form. |
String | getFocus()
Return the focus field name for this form. |
String | getFocusIndex()
Returns the focusIndex. |
String | getMethod()
Return the request method used when submitting this form. |
String | getOnreset()
Return the onReset event script. |
String | getOnsubmit()
Return the onSubmit event script. |
boolean | getScriptLanguage()
Gets whether or not the focus script's <script> element will include the
language attribute. |
String | getStyle()
Return the style attribute for this tag. |
String | getStyleClass()
Return the style class for this tag. |
String | getStyleId()
Return the style identifier for this tag. |
String | getTarget()
Return the window target. |
protected void | initFormBean()
Locate or create the bean associated with our form. |
boolean | isDisabled() Returns the disabled event handler. |
boolean | isReadonly() Returns the readonly event handler. |
boolean | isXhtml()
Returns true if this tag should render as xhtml. |
protected void | lookup()
Look up values for the name , scope , and
type properties if necessary.
|
void | release()
Release any acquired resources. |
protected void | renderAction(StringBuffer results)
Renders the action attribute |
protected void | renderAttribute(StringBuffer results, String attribute, String value)
Renders attribute="value" if not null |
protected String | renderFocusJavascript()
Generates javascript to set the initial focus to the form element given in the
tag's "focus" attribute. |
protected String | renderFormStartElement()
Generates the opening <form> element with appropriate
attributes. |
protected void | renderName(StringBuffer results)
Renders the name of the form. |
protected void | renderOtherAttributes(StringBuffer results)
'Hook' to enable this tag to be extended and
additional attributes added. |
protected String | renderToken()
Generates a hidden input field with token information, if any. |
void | setAcceptCharset(String acceptCharset)
Set the list of character encodings accepted.
|
void | setAction(String action)
Set the action URL to which this form should be submitted.
|
void | setDisabled(boolean disabled) Sets the disabled event handler. |
void | setEnctype(String enctype)
Set the content encoding used when submitting this form.
|
void | setFocus(String focus)
Set the focus field name for this form.
|
void | setFocusIndex(String focusIndex)
Sets the focusIndex. |
void | setMethod(String method)
Set the request method used when submitting this form.
|
void | setOnreset(String onReset)
Set the onReset event script.
|
void | setOnsubmit(String onSubmit)
Set the onSubmit event script.
|
void | setReadonly(boolean readonly) Sets the readonly event handler. |
void | setScriptLanguage(boolean scriptLanguage)
Sets whether or not the focus script's <script> element will include the
language attribute. |
void | setStyle(String style)
Set the style attribute for this tag.
|
void | setStyleClass(String styleClass)
Set the style class for this tag.
|
void | setStyleId(String styleId)
Set the style identifier for this tag.
|
void | setTarget(String target)
Set the window target.
|
ActionMapping
otherwise.ActionMapping
otherwise.ActionMapping
otherwise.Since: Struts 1.1
Since: Struts 1.2
servlet
property on any form bean that
we create).Throws: JspException if a JSP exception has occurred
Throws: JspException if a JSP exception has occurred
Returns: String
Returns: true if language attribute will be included.
Since: Struts 1.2
Throws: JspException
Since: Struts 1.1
name
, scope
, and
type
properties if necessary.
Throws: JspException if a required value cannot be looked up
Since: Struts 1.1
<form>
element with appropriate
attributes.Since: Struts 1.1
Returns: A hidden input field containing the token.
Since: Struts 1.1
Parameters: acceptCharset The list of character encodings
Parameters: action The new action URL
Parameters: enctype The new content encoding
Parameters: focus The new focus field name
Parameters: focusIndex The focusIndex to set
Parameters: method The new request method
Parameters: onReset The new event script
Parameters: onSubmit The new event script
Since: Struts 1.2
Parameters: style The new style attribute
Parameters: styleClass The new style class
Parameters: styleId The new style identifier
Parameters: target The new window target