cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <Yury.Mikhie...@mobicomk.ru>
Subject Re: forwarding paremeter to xsp
Date Thu, 05 Jun 2003 16:21:27 GMT
try in sitemap:
<map:match pattern="**.info">
     <map:generate type="serverpages" src="process.xsp">
       <map:parameter name="param1" value="{1}"/>
     </map:parameter>
     <map:serialixe type="xml"/>
 </map:match>
 
in XSP:
<xsp:page
  language="java"
  xmlns:xsp="http://apache.org/xsp" >
<xsp:structure>
 <xsp:include>org.apache.avalon.framework.parameters.ParameterException</xsp:include>
</xsp:structure>  
<dummypage>
  <xsp:logic>
  String test = "";
   try
   {
    test = parameters.getParameter("param1");
   }catch (ParameterException pe)
   {
    test = "nothing %((";
   };
  </xsp:logic>
  <test>
   <xsp:expr>test</xsp:expr>
  </test>
</dummypage>
</xsp:page>

> Hi All,
> 
> is there a way to use parameter form pipeline match 
> in XSP page?
> 
> for example if pipeline match looks like
> 
> ...
> <map:match pattern="**.info">
>     <map:generate type="serverpages" src="process.xsp"/>
>     <map:serialixe type="xml"/>
> </map:match>
> 
> normalyy in pipeline we can use {1} 
> but how can  I use it in process.xsp?
> 
> please advice
> 
> Pawel Zukrowski
> 
> 
> 


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

---------------------------------------------------------------------
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