> Hi Cocooners!
> 
> First congratulations on exelent work. Cocoon2 is shaping up
> quite nicely. 
> 
> What I would like to do is to pass parameter into XSP from
> sitemap. Here is a part of sitemap:
> 
>    <map:match pattern="funsms/*)">
>     <map:generate type="serverpages" src="docs/funsms/category.xsp">
>      <map:parameter name="category_id" value="{1}"/>
>     </map:generate>
>     <map:serialize type="xml"/>
>    </map:match>
> 
> How can I get hold of category_id  in XSP... Sorry if this is RTFM.

In the XSP try:

 String fromSitemap = parameters.getParameter("category_id","default");

 
> Also sitemaps compiles in background and replaces old sitemap
> only after compilation finishes? If so can it be turned off since it is
> kinda irritating while developing. 

In cocoon.xconf set your sitemap reloading from asynchron to synchron.
--
Torsten

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to