cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavio Palumbo" <flavio.palu...@fastwebnet.it>
Subject Re: util:get-sitemap-parameter
Date Sun, 28 Mar 2004 19:47:46 GMT
Thanks a lot, it works ;-)

Flavio
>-- Original Message --
>Reply-To: users@cocoon.apache.org
>From: Mark Leicester <mark.leicester@energyintellect.com>
>Subject: Re: util:get-sitemap-parameter 
>Date: Sun, 28 Mar 2004 13:50:16 +0100
>To: users@cocoon.apache.org
>
>
>Hello Flavio,

Was your sitemap snippet cut-and-pasted? If so, it contains an error:
>   <map:generate type="serverpages" src="docs/{1}-dept.xsp"/>
>     <map:parameter name="flavio" value="test"/>

It should be:
   <map:generate type="serverpag
>s" src="docs/{1}-dept.xsp">
     <map:parameter name="flavio" value="test"/>
   </map:generate>

Note that the parameter must be a child of the generator.

HTH,
Mark

On 26 Mar 2004, at 13:15, Flavio Palumbo wrote:

> Hi all,
>
> I found a
>fine example on the archive regarding the object and tried to
> use it on tutorial/create-dept.html sample to figure out how it works.
>
> Here are the snippets :
>
> Sitemap------------------------------------------
> <map:match pattern="*-dept.
>tml">
>   <map:act set="process">
>     <map:parameter name="descriptor"  
> value="context://samples/databases/tutorial/docs/department-form.xml"/

> >
>     <map:generate type="serverpages" src="docs/confirm-dept.xsp"/>
>     <map:transform src
>"apache.xsl"/>
>     <map:serialize/>
>   </map:act>
>   <map:generate type="serverpages" src="docs/{1}-dept.xsp"/>
>     <map:parameter name="flavio" value="test"/>
>   <map:transform src="apache.xsl"/>
>   <!--map:transform  
> src="context://
>amples/common/style/xsl/html/simple-page2html.xsl"/-->
>   <map:serialize/>
> </map:match>
>
> create-dept.xsp----------------------------------------
>
>         <xsp:logic>
>          String s = <util:get-sitemap-parameter name="flavio"/>;
> 
>        System.out.println("parameter flavio ="+s);
>         </xsp:logic>
>
>
> I expect a printout of "test" and instead I found null.
>
> Any hint ?
>
> Thanks a lot
>
> Flavio Palumbo
>
>
>
> ------------------------------------------
>--------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mai
>: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message