I have an issue whereby I am developing JSP pages that contain multiple
forms. The problem here is the use of the Stripes <s:form> tag without
specifying a value for the action or beanClass attribute. The Stripes form
tag requires a mandatory attribute of either action or beanClass with a
value specified that binds to the appropriate action bean. The use of the
Stripes form tag is a requirement within these pages instead of the standard
form tag as there are inner Stripes elements, e.g. Stripes select and
options-collection, that have dependancies on this. Without specifying these
attributes the following error is produced:

[ERROR] Could not locate an ActionBean that was bound to the URL [].
Without an ActionBean class Stripes cannot determine whether the ActionBean
is a wizard or not.
As a result wizard behaviour will be disabled.

My JSP page uses JavaScript for performing an Ajax save by pulling out the
values from the form and posting them back to the action bean, as opposed to
an actual form submission action. This can be worked around by specifying
the url for the action bean within the action attribute of the Stripes
<s:form> tag, even though this is not required for what I am doing.

Additionally to this however is the use a web component which is an included
JSP page that contains a form used by multiple JSP pages. This to uses the
<s:form> tag and as such requires an action to be specified, even though one
is not needed as this is used by many different JSP pages. I have currently
worked around this shortcoming by creating a "dummy" action bean that
performs nothing but allows me to specify the url for this in the action
attribute of the tag. Is there some way of doing this in a cleaner fashion
rather than a redundant action bean?
-- 
View this message in context: 
http://www.nabble.com/No-action-or-beanClass-required-for-Stripes-%3Cs%3Aform%3E-tag-tp16573270p16573270.html
Sent from the stripes-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to