You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Madatov, Eugene" <EM...@seta.com> on 2003/09/10 21:14:09 UTC
ResourceExistsAction problem
Hi,
I've tried to use ResourceExistsAction but got some weird results.
Here is my code:
<map:match pattern="*.acc">
<map:act type="resource-exists-act">
<map:parameter name="url" value="cocoon:/xxx"/>
<map:redirect-to uri="cocoon:/dp-{../1}" />
</map:act>
<map:generate src="empty.xml" />
<map:serialize/>
</map:match>
What ever I put in "xxx" appears a valid path.
Please tell me what's is wrong.
Thanx!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ResourceExistsAction problem
Posted by Leszek Gawron <ou...@wlkp.org>.
On Wed, Sep 10, 2003 at 03:14:09PM -0400, Madatov, Eugene wrote:
> Hi,
> I've tried to use ResourceExistsAction but got some weird results.
> Here is my code:
> <map:match pattern="*.acc">
> <map:act type="resource-exists-act">
> <map:parameter name="url" value="cocoon:/xxx"/>
> <map:redirect-to uri="cocoon:/dp-{../1}" />
> </map:act>
> <map:generate src="empty.xml" />
> <map:serialize/>
> </map:match>
Maybe I am wrong but I always thought that this action operates on "physical"
resources only (does not work with cocoon:/ pseudo protocol )
LG
--
__
| / \ | Leszek Gawron // \\
\_\\ //_/ ouzo@wlkp.org _\\()//_
.'/()\'. Phone: +48(501)720812 / // \\ \
\\ // recursive: adj; see recursive | \__/ |
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org