with HTML and JavaScript, you can specify which uri to post the form to for each button. (Changing the action attribute of the form and then submitting it.)
<form name="ff"> <input type="submit" onClick="javascript:somefunction()"/> </form> <script language="javascript"> function somefunction() { document.ff.action = 'someuri'; document.ff.method = 'POST'; document.ff.submit(); } </script> Fiedler, Raul wrote: > Hi > > I have a HTML form with fields. In order to process the fields in 2 > different ways I need 2 submit buttons. > How can one assign different actions to the 2 buttons. > > Ultimately I want to have 2 pipelines. > > Can it be done with: > HTML form > <input type="submit" value="option1"/> > <input type="submit" value="option2"/> > > > sitemap > <map:select> > <map:parameter name="parameter-selector-test" value="value"/> > <map:when test="option1"> > <map:redirect-to uri="/cocoon/optioin1"/> > </map:when> > <map:otherwise> > <map:redirect-to uri="/cocoon/optioin2"/> > </map:otherwise> > </map:select> > > thanks > > >>Raul Fiedler >>European Central Bank >>DG Information Systems - Business Development >>* +49 (0) 69 1344 6870 >>* [EMAIL PROTECTED] >> >> > > Any e-mail message from the European Central Bank (ECB) is sent in good faith but >shall neither be binding nor construed as constituting a commitment by the ECB except >where provided for in a written agreement. > This e-mail is intended only for the use of the recipient(s) named above. Any >unauthorised disclosure, use or dissemination, either in whole or in part, is >prohibited. > If you have received this e-mail in error, please notify the sender immediately via >e-mail and delete this e-mail from your system. > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>