cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2] Session validator deletes {1}
Date Tue, 17 Jul 2001 18:13:40 GMT
On Tue, 17 Jul 2001, Ugo Cei wrote:

> It looks like there is a bug in SessionValidatorAction. Suppose you have
> a sitemap entry like this one:
>
> <map:match pattern="*.html">
>    <map:act type="session-validator">
>      <map:parameter name="descriptor" context://descriptors/params.xml"/>
>      <map:parameter name="validate" value="username"/>
>      <map:generate type="serverpages" src="docs/{1}.xsp"/>
>      <map:transform src="stylesheets/simple-page2html.xsl"/>
>      <map:serialize/>
>    </map:act>
>    <map:redirect-to uri="login.html"/>
> </map:match>
>
> This fails because the XSP generator cannot find "docs/null.xsp".
> Apparently the SessionValidatorAction deletes any exixting sitemap
> parameter before copying the session attributes to the sitemap, so the
> value of {1} is lost.

Your sitemap is wrong (not the system). You have the following stack of
Maps. On top is the one from the Matcher and next comes the one from the
Action. Thus your reference to the matchers value should be {../1}

Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message