*whew*   - much better!  :)

Except that I don't prefer the method you describe because of its increased
footprint in struts-config.xml - but we've already covered that issue.

I'll try to submit the first two of the four "dispatch" base classes I
proposed in a day or so - they will just be a refactoring and split of the
one I already submitted.

    Erik

----- Original Message -----
From: "Dimitri Valdin" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 5:17 AM
Subject: Antwort: Re: [SUBMIT] LookupDispatchAction - how to handle multiple
html:submit buttons



sorry, I have really misunderstood the DispatchAction. Thank's Erik for
pointing it out.
In case of MultiSubmitAction working with DispatchAction, the solution would
be:

    <action    path="/test"
               type="org.apache.struts.actions.MultiSubmitAction"
               name="testForm"
              scope="request"
              input="/test.jsp">
      <forward name="add.x"         path="/addDelete.do&method=add"/>
      <forward name="delete.x"      path="/addDelete.do&method=delete"/>
    </action>

    <action    path="/addDelete"
               type="org.apache.struts.webapp.example.AddDeleteAction"
               name="testForm"
              parameter="method"
              scope="request"
              input="/test.jsp">
    </action>


Dmitri Valdin



--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



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




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

Reply via email to