(other than political) are there reasons why you would'nt want to stick with 
type='submit' 
and let the <Action> back end handle processing of 
RequestParameters/FormFields/SessionValues
?
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> Subject: HOWTO implement multiple submit buttons with type = image.
> Date: Tue, 10 Mar 2009 13:46:25 -0500
> From: ak...@allstate.com
> To: user@struts.apache.org
> 
> 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
> 
> 

_________________________________________________________________
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009

Reply via email to