Thanks bobby, it works!

Antonio

El Jueves, 12 de Septiembre de 2002 06:40, Bobby Mitchell escribió:
> Antonio Gallardo Rivera wrote:
> >Hi all!
> >
> >I tried to resolve a problem about nested <map:action-sets> in C2.1. To
> > try to work with a database actions and formvalidator.
> >
> >Given 2 submit buttons in a form: one for update and the second for
> > delete:
> >
> >The name of the parameters will be:
> >
> >cocoon-action-Update
> >cocoon-action-Delete
> >
> >How I can know in the sitemap what button was pressed?
>
> Couple of ways:
> 1:
>              <map:match type="request-parameter"
> pattern="cocoon-action-Update">
>                     <!-- do something-->
>              </map:match>
>              <map:match type="request-parameter"
> pattern="cocoon-action-Delete">
>                     <!-- do something-->
>              </map:match>
>
> 2:
> cocoon-action=Update or cocoon-action=Delete
>
>               <map:match type="request-parameter" pattern="cocoon-action">
>                <map:select type="request-parameter">
>                  <map:parameter name="parameter-name"
> value="cocoon-action"/>
>                  <map:when test="Update">
>                     <!-- do something-->
>                  </map:when>
>                  <map:when test="Delete">
>                     <!-- do something-->
>                  </map:when>
>                </map:select>
>              </map:match>
>
> >Regards,
> >
> >Antonio Gallardo
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >Please check that your question  has not already been answered in the
> >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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

Reply via email to