cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: ResourceExistsAction problem
Date Mon, 20 May 2002 09:34:11 GMT
From: "Ivan Luzyanin" <ivan@ProZa.Lviv.UA>

> 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)
>
>
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message