Tag form

Render an HTML form element containing the nested components to present the appropriate label and input field elements. This tag is distinguished from the tag in the standard HTML RenderKit because it accepts a Struts <action> path as a parameter, and triggers the creation of a Struts form bean if needed.

Tag Information
Tag Classorg.apache.struts.faces.taglib.FormTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone


Struts Action to which this form should be submitted. This value must exactly match the path attribute of the corresponding <action> element in the struts-config.xml configuration file for this application module.


Value binding expression to bind this component to a backing bean property.


The content encoding to be used to submit this form, if the method is POST. This must be set to "multipart/form-data" if your form includes file upload field(s). If not specified, the browser default ("application/x-www-form-urlencoded") is used.


The identifier of the form field that should receive focus when this form is rendered.


If the focus field is an array, such as a radio button group, you can specify the index of the array element to receive focus.

idfalsefalsejava.lang.StringComponent id of this component.

JavaScript event handler executed if this form is reset.


JavaScript event handler executed if this form is submitted.

renderedfalsefalsejava.lang.StringBoolean attribute indicating whether this component should be rendered or not.

CSS styles to be applied to this HTML element.

styleClassfalsefalsejava.lang.StringCSS style class to use when rendering this component.

Window target to which this form is submitted, such as for use in framed presentations.

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.