Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
@SuppressWarnings("unchecked") public String addStep() { System.out.println("do abc"); return "ajax-add-step"; } @SkipValidation public String completeIncentive() {

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread Lukasz Lenart
2008/11/20 xianwinwin <[EMAIL PROTECTED]>: > I have it: > > > class="com.struts.incentive.target.StepsIncentiveAction"> > name="input">/pages/incentive/steps/ajaxInput.jsp > name="ajax-add-step">/pages/incentive/steps/ajaxAddStep.jsp >

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
I have it: /pages/incentive/steps/ajaxInput.jsp /pages/incentive/steps/ajaxAddStep.jsp /pages/incentive/steps/ajaxConfirmation.jsp

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread Lukasz Lenart
2008/11/20 xianwinwin <[EMAIL PROTECTED]>: > > Struts Problem Report > Struts has detected an unhandled exception: > > Messages: No result defined for action > com.struts.incentive.target.StepsIncentiveAction and result success Here you have answer, you are missing success result in config for th

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
Struts Problem Report Struts has detected an unhandled exception: Messages: No result defined for action com.struts.incentive.target.StepsIncentiveAction and result success File: file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/wtpwebapps/MGroups/WEB-INF/classes/incentiv

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread Lukasz Lenart
2008/11/20 xianwinwin <[EMAIL PROTECTED]>: > yes, I get: undefined It's a JavaScript error, could you post the whole page? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
yes, I get: undefined * I use ajax for the return type * the action is not executed (meaning, when the user clicks a button the failure occurs before the action) Lukasz Lenart wrote: > > 2008/11/20 xianwinwin <[EMAIL PROTECTED]>: >> I have a simple form with 2 buttons (diff action), how c

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread Lukasz Lenart
2008/11/20 xianwinwin <[EMAIL PROTECTED]>: > I have a simple form with 2 buttons (diff action), how can I make sure both > will exec? Do you get any error or something? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscr

2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
Hi all, I have a simple form with 2 buttons (diff action), how can I make sure both will exec? http://www.nabble.com/2-buttons-for-the-same-form%2C-error-when-trying-to-invoke-different-action-tp20608955p20608955.html Sent from the Struts - User mailing list archive at Nabble.com.