> From: [EMAIL PROTECTED]
>
> Hello,
>
> i have a new problem:)
> In my FormAction I want to send back a request parameter
> with my page to
> use
> this parameter in a xsl-stylesheet.
> Therefore I tried the following:
> if(view == first)
> if(cmd == next)
> request.setAttribute("show", "no");
> return(NEXT_PAGE);
>
>
> Then I would like to use this parameter in the stylesheet for
> NEXT_PAGE.
> Am I doing here something completely wrong?
To use a parameter returned by an action as stylesheet parameter you should
do the following:
- add parameter value to a Map object (you can add it also to request
attributes if needed)
- return the Map from your action
- use that parameter as a transformer parameter using this syntax:
<map:act type="form">
<map:generate .../>
<map:transform ...>
<map:parameter name="next-page" value="{show}" />
</map:transform>
</map:act>
Konstantin
>
> Thanks for any help,
>
> miHam
>
>
> ---------------------------------------------------------------------
> 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]>