At 12:06 26/04/2002 +0200, you wrote: >i want send parameter to the generator type serverpages. >My site map is : > <map:pipeline> > <map:match pattern="etatdb-*"> > <map:generate type="serverpages" src="etatdb.xsp"> > <parameter name="client" value="{1}"/> > </map:generate> > <map:transform src="etatdb.xsl"/> > <map:serialize/> > <map:handle-errors> > <map:transform > src="../stylesheets/system/error2html.xsl"/> > </map:handle-errors> > </map:match> > > </map:pipeline> > >on my xsp file, i add this line : > <xsp:expr>parameters.getParameter("client")</xsp:expr>
Use this: <?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"> <data> <xsp:logic> String myParam = ""; <!-- get the parameter from sitemap --> try{ myParam = parameters.getParameter("client"); } catch (Exception e) {} </xsp:logic> ... your content goes here ... </data> </xsp:page> Make sure you place the code below the first tag (not directly below the xsp:page tag). This question has been answered before on this list by Vadim. Do check the archives. Bert --------------------------------------------------------------------- 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]>