Stripes Tag Library
Tag form


Stripes' HTML form tag. Provides a standard HTML form tag interface, but allows other stripes input tags to re-populate their values. Also includes a hidden field in the form for the page name that the form is being rendered on (to allow forwarding to the same page in the case of a validation error.


Tag Information
Tag Classnet.sourceforge.stripes.tag.FormTag
TagExtraInfo ClassNone
Body ContentJSP
Display Nameform

Attributes
NameRequiredRequest-timeTypeDescription
actionfalsetruejava.lang.String The URL to which this form will post. Expected to be a web-app relative path - the tag will prepend the context path to any action that begins with a slash and does not already begin with the context path. Should match a URL to which an ActionBean has been bound. Required unless 'beanclass' is provided.
beanclassfalsetruejava.lang.Object The fully qualified name of an ActionBean class, or alternatively a Class instance for an ActionBean class. An alternative to the 'action' attribute, the 'beanclass' attribute will generate an action appropriate for the ActionBean identified. Note that if an "ActionBean" that does not yet exist is identified an exception will be thrown!
focusfalsetruejava.lang.String The name of the form field that should receive focus when the page is loaded. Two special values are recognized, 'first' and the empty string; these values cause the form to set focus on the first element in the form. If any value is set, and the form has validation errors, the behaviour is altered and the first field with validation errors is focused instead.
acceptfalsetruejava.lang.StringA comma separated list of content types that it is acceptable to submit through this form. (HTML Pass-through)
acceptcharsetfalsetruejava.lang.StringA comma separated list of possible character sets for form data. Will be written to the page as accept-charset. (HTML Pass-through)
enctypefalsetruejava.lang.String The mime type used to encode the content of this form. This value will be overridden if one or more Stripes file input tags is used within the body of the form.
methodfalsetruejava.lang.StringThe HTTP method used for sending data to the server. Options are GET and POST. Default is POST. (HTML Pass-through)
namefalsetruejava.lang.StringThe unique name of the form. (HTML Pass-through)
targetfalsetruejava.lang.StringWhere the target URL is to be opened. One of _blank, _self, _parent and _top. (HTML Pass-through)
onresetfalsetruejava.lang.StringScripting code run when the form is reset. (HTML Pass-through)
onsubmitfalsetruejava.lang.StringScripting code run prior to the form being submitted to the server, (HTML Pass-through)
partialfalsetruejava.lang.String Indicates whether or not to actually render the HTML <FORM> tag and certain hidden inputs, such as _sourcePage. This is useful when using AJAX to insert elements into an existing <FORM>.
classfalsetruejava.lang.StringThe CSS class to be applied to the element. (HTML Pass-through)
dirfalsetruejava.lang.StringText direction. (HTML Pass-through)
idfalsetruejava.lang.StringA unique identifier for the HTML tag on the page. (HTML Pass-through)
langfalsetruejava.lang.StringThe language code of the element. (HTML Pass-through)
onclickfalsetruejava.lang.StringScripting code run on each mouse click. (HTML Pass-through)
ondblclickfalsetruejava.lang.StringScripting code run on a double-click of the mouse. (HTML Pass-through)
onkeydownfalsetruejava.lang.StringScripting code run when a key is depressed. (HTML Pass-through)
onkeypressfalsetruejava.lang.StringScripting code run when a key is pressed and released. (HTML Pass-through)
onkeyupfalsetruejava.lang.StringScripting code run when a key is released. (HTML Pass-through)
onmousedownfalsetruejava.lang.StringScripting code run when a mouse button is depressed. (HTML Pass-through)
onmousemovefalsetruejava.lang.StringScripting code run when the mouse pointer is moved. (HTML Pass-through)
onmouseoutfalsetruejava.lang.StringScripting code run when the mouse pointer moves out of the element. (HTML Pass-through)
onmouseoverfalsetruejava.lang.StringScripting code run when the mouse pointer moves over the element. (HTML Pass-through)
onmouseupfalsetruejava.lang.StringScripting code run when a mouse button is released. (HTML Pass-through)
stylefalsetruejava.lang.StringInline CSS style fragment that applies to the element (HTML Pass-through)
titlefalsetruejava.lang.StringTool-tip text for the element. (HTML Pass-through)

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.