forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <KPiroum...@protek.com>
Subject Re: Updates to sitemap
Date Tue, 17 Sep 2002 09:35:13 GMT
From: "Jeff Turner" <jefft@apache.org>
> On Tue, Sep 17, 2002 at 11:47:56AM +0400, Konstantin Piroumian wrote:
...
> >
> > Now the issue: CLI versions work as before (again the 'Home' tab has
wrong
> > link and an NPE in TraxTransformer happens during generation), but the
> > webapp version fails to switch to HowTos tab, because of the redirect is
> > issued to '/community/howto/index.html' which results in redirecting to
the
> > server root and not to the 'Forrest/community/howto/index.html'. Hadn't
yet
> > time to investigate the reason, patches are welcome.
>
> In the directory redirect:
>
> <map:match pattern="**/">
>   <map:redirect-to uri="{request:context}/{1}/index.html"/>
> </map:match>
>
> You should be using the 'context' module, not the 'request' module. The
> 'request' prefix is mapped to the RequestParameterModule, which doesn't
contain
> the 'context' variable, so always returns a blank. Change
{request:context} to
> {context:context} and it works. The javadocs for RequestContextPathModule
are
> also wrong.

Thanks for finding the reason!

I'll better fix the RequestContextPathModule and its declaration in
cocoon.xconf. The syntax I've used was the supposed one, but I've declared
the module incorrectly.

--
  Konstantin

>
>
> --Jeff
>
> > Btw, why the created WAR has name 'Forrest' and not 'forrest'?
> >
> > --
> >   Konstantin
> >
>


Mime
View raw message