On ðÎÄ, 2002-05-20 at 07:34, Konstantin Piroumian wrote:
> From: "Ivan Luzyanin" <[EMAIL PROTECTED]>
> 
> > Hello all!
> >
> > I've got problem using ResourceExistsAction with context path
> >
> > $COCOON/site/sitemap.xmap
> > <map:match pattern="content-**.xsp">
> >  <map:act type="resource-exists">
> >    <map:parameter name="url" value="context://dynamic/{1}.xsp"/>
> >    <map:generate src="dynamic/{1}.xsp" type="serverpages"/>
> >    <map:transform src="stylesheets/document2html.xsl"/>
> >    <map:serialize type="xhtml"/>
> >  </map:act>
> >  <map:generate src="static/system/notfound.xml"/>
> >  <map:transform src="stylesheets/document2html.xsl/>
> >  <map:serialize/>
> > </map:match>
> >
> > And i've got following error:
> >
> > org.apache.cocoon.ProcessingException:
> > /usr/java/jakarta-tomcat-4.0.1/webapps/site/dynamic/.xsp (No such file
> > or directory): java.io.FileNotFoundException
> >
> > Why "dynamic/{1}.xsp" become "dynamic/.xsp" ?
> 
> Try  {../1}.xsp. Parameters are hierarchical, so if you are inside of an
> action then {1} references parameters returned by the action and parameters
> returned by the matcher are available using "../" prefix.
> 
> Konstantin
> 
> >
> > Enviroment:
> > RH 7.2
> > Cocoon 2.0.1
> > JDK 1.3.1_02b (Blackdown)

Works fine now. :o)
Thank you, Konstantin!


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