cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Leicester <mark.leices...@energyintellect.com>
Subject Re: util:get-sitemap-parameter
Date Sun, 28 Mar 2004 12:50:16 GMT
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="serverpages" 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.html">
>   <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://samples/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-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message