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