With image type submits, an "x" and "y" value are usually submitted (so that if the button is an imagemap, the server knows where the user clicked). Struts is complaining that you don't have any fields that accept an "x" or a "y" field on your action class. jk
On Tue, Mar 10, 2009 at 2:46 PM, Kra, Aime yao (TEK System) < ak...@allstate.com> wrote: > Hello > > I am implementing a form with two buttons CANCEL and REGISTER. > > I have followed the sample provided in the cookbook > http://struts.apache.org/2.x/docs/multiple-submit-buttons.html > This works fine if type="submit" > > > --------------------------------------------------------------------------------------- > <s:submit type="submit" src="../images/button/cancel_bkgd.jpg" > name="buttonName" value="Cancel" /> <s:submit type="submit" > src="../images/button/register_bkgd.jpg" name="buttonName" > value="Register" /> <br> > > --------------------------------------------------------------------------------------- > > For type="image" I receive the following error > [3/10/09 9:05:49:726 EDT] 00000036 ParametersInt E > com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters > ParametersInterceptor - [setParameters]: Unexpected Exception caught setting > 'buttonName.x' on 'class com.ars.claims.view.action.CreateProviderOwner: > Error setting expression 'buttonName.x' with value > '[Ljava.lang.String;@7cf47cf4' > > > In struts 1, we can use an ImagebuttonBean type to provide the > getter/setter in the action class. (See > http://www.java-samples.com/showtutorial.php?tutorialid=518) > > I can't see ImagebuttonBean in struts 2. > Can someone know how to implement these two image type submit buttons and > What should be the code in the Execute() method of the Action class to know > the pressed button ? > > Any Help will be appreciated. > > > Thanks > > Aimé Kra > > > -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com