struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: [s2] multiple submit buttons using action and method
Date Fri, 01 May 2009 01:35:12 GMT
Stephiems wrote:
> Both submits go to the same action, just different methods, so I can't have
> different forms. I might have to change how it works. I don't like it as it
> is, but that is what the client wanted, and as much as I tried to get them
> to chanage, in the end I have to do what they want.
> Here is basically what I'm doing:
> JSP (not the full jsp, I've taken out as much as the unnecessary stuff as
> possible):
> <s:form name="displ" action="ListCustomerData">
>   <s:submit id="saveButton" name="saveButton"
>             value="%{getText('')}" cssClass="button"/> 
 >   <s:submit id="payNowButton" name="payNowButton"
>             value="%{getText('button.label.paynow')}" action="ListCustomerData"
>             method="pay" cssClass="button"/></p>
> </s:form>
> in my ListCustomerData action I have a save() function and pay() function.
> Again, just to repeat, this only seems to happen if I press the pay, find an
> error
> I might just have to make it so the pay isn't a submit button, maybe have a
> sort of 'shopping cart' running total at the top of the screen where they
> can click on the link to go to the make payment screen.. But, I do still
> believe that what I'm trying to do should work. 

*and* configuration.

I only see a method defined for the "pay" submit button; does the 
ListCustomerData action coniguration specify the "save" method?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message