cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: xml-forms
Date Mon, 22 Jul 2002 13:08:36 GMT
> From: michael_hampel@sonynetservices.com 
> 
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message