thanks, i will give it a try... On 8/5/08, Jim Kiley <[EMAIL PROTECTED]> wrote: > I can't see any reference anywhere that suggests that putting a wildcard in > the form's action attribute will work. Even if it does work with client > side validation turned off, I get the impression -- and I could be wrong -- > that you've stumbled into a weird corner case that just happens to work. If > you would like to have more consistency in your application's behavior, I > think that Gabriel's advice is the way to go. Have each submit send > "Subscription_execute" or "Subscription_cancel", and rely on the wildcarding > in struts.xml to route the request appropriately. > > jk > > On Tue, Aug 5, 2008 at 7:00 AM, Markus Stauffer > <[EMAIL PROTECTED]>wrote: > >> I have this in my form: >> >> <s:form action="Subscription_*"> >> <s:textfield key="something"/> >> >> <s:submit value="%{'Submit'}" method="execute"/> >> <s:submit value="%{'Cancel'}" method="cancel"/> >> </s:form> >> >> It works like a charm. But if i turn on client side validation there >> are warnings/errors. >> >> >> >> >> >> On 8/5/08, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: >> > AFAIK, wildcard mapping has sense only inside struts.xml. >> > In your form, you must specify exactly which action will be called, >> > like "Subscribe_dosomething" >> > >> > 2008/8/5 Markus Stauffer <[EMAIL PROTECTED]>: >> >> Hello all >> >> >> >> Say I have a struts2 form: >> >> >> >> <s:form action="Subscribe_*" validate="true"> >> >> <s:textfield key="something"/> >> >> </s:form> >> >> >> >> >> >> The javascript validation generated for this form is unfortunately >> >> invalid. Firefox complains about the "*" character. >> >> >> >> Is there any way to get around this without turning to server side >> >> validation? >> >> >> >> kind regards >> >> -- >> >> Markus Stauffer >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> >> -- >> Markus Stauffer >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Jim Kiley > Technical Consultant | Summa > [p] 412.258.3346 [m] 412.445.1729 > http://www.summa-tech.com >
-- Markus Stauffer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]