You don't need to switch, you just need the two classes I mentioned.
You dont need a keymethodmap either.

=== cut here ===
jsp:
====
<html:form action="/actions/retrieve"  method="post">
  <html:submit property="updateEvent">
    <bean:message key="button.UpdatePage" />
  </html:submit>
</html:form>


Action Class:
=========
public class RetrieveAction extends Action {

  /**
   * Instantiate event dispatcher
   */
  protected ActionDispatcher dispatcher =
      new EventDispatcher(this, false);

  /**
   * Use event dispatcher to call an appropriate event handler.
   * By using a dispatcher an action class does not have
   * to extend a DispatchAction flavor.
   */
  public ActionForward execute(ActionMapping mapping,
                               ActionForm form,
                               HttpServletRequest request,
                               HttpServletResponse response)
      throws Exception {
      return dispatcher.execute(mapping, form, request, response);
  }


  public ActionForward updatePage(ActionMapping mapping, ActionForm form,
         HttpServletRequest request, HttpServletResponse response)
         throws IOException, ServletException {

    RetrieveFormBean dataForm = (RetrieveFormBean) form;
    .....
    return mapping.findForward("retrieve");
  }
}


struts-config.xml
========
<action path="/actions/retrieve"
       name="RetrieveFormBean"
       type="com.struts.action.RetrieveAction"
       scope="session"
       parameter="updateEvent=updatePage">
       <forward name="Retrieve" path="/tiles/Retrieve.jsp"/>
</action>
=== cut here ===

On 3/1/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> we are unfortunately using 1.1. I will check with the techspert team to see 
> if we can switch over.
> thank you for the suggestion
>
> ________________________________
>
> From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Sent: Tue 2/28/2006 4:15 PM
> To: Struts Users Mailing List
> Subject: Re: multiple submit buttons: LookupDispatchAction / ActionForward 
> formdata missing
>
>
>
> > On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> <skipped/>
>
> By the way, LookupDispatchAction is not the best choice to dispatch
> events. I suggest you to use this one:
> http://issues.apache.org/bugzilla/attachment.cgi?id=17724 You will
> also need ActionDispatcher class from Struts 1.2.7+ distro.
>
> Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to