Stripes Tag Library
Tag useActionBean


Puts the ActionBean with the specified binding into page context under the supplied name. If the ActionBean does not already exist, it will be instantiated and binding will be run to bind values from the HttpServletRequest onto the ActionBean. Validation will not be run, and any error messages produced from the binding/type conversion process will be discarded. The ActionBean will then be placed in request scope, just as done by the DispatcherServlet.

If the ActionBean did not previously exist, and an event is specified, the event handler will be executed on the ActionBean. If the ActionBean already existed, supplying the event attribute has no effect.

Lastly, if the var or id attribute is supplied (they are synonymous and only one should be supplied) the ActionBean is bound in to page context using the name supplied. This is true in all cases, regardless of whether the ActionBean is newly instantiated, or pre-existing. This allows the tag to be used to provide an easier name for the ActionBean than referring to it by binding.



Tag Information
Tag Classnet.sourceforge.stripes.tag.UseActionBeanTag
TagExtraInfo ClassNone
Body Contentempty
Display NameuseActionBean

Attributes
NameRequiredRequest-timeTypeDescription
bindingtruetruejava.lang.String The URL to which the action bean is bound, as specified in the @UrlBinding for the ActionBean in question.
eventfalsetruejava.lang.String The (optional) name of an event to execute. If no event is provided, the ActionBean is instantiated and bound, but no event is executed. To execute the default event handler you must give it a name in the ActionBean and name it here.
varfalsetruejava.lang.String The (optional) name of an attribute to bind the bean to in page context.
idfalsetruejava.lang.String Synonym for var.

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.