I wrote:
> 
> Ralph Goers wrote:
> > 
> > At 9/3/2004  04:17 PM, you wrote:
> > 
> > 
> > >So... does anyone have a foolproof way to find the URI of 
> > the application
> > >(mount/gem)?
> > 
> > I should think that the http servlet request would always 
> > have the valid 
> > request uri. I know how to get this from Java (its in the 
> > object model) but 
> > I'm not sure where you are trying to access it from.
> > 
> 
> I'm trying to access it from within an XSLT stylesheet, to generate
> an appropriate href that the source-writing transformer can use.
> So far I've been using the Request InputModule in the sitemap and
> passing the values as parameters to the stylesheet.
> 
> By "valid" request URI, do you mean the inner one?
> 
> I see now that there may be some more things to try at
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/environment/http/HttpRequest.html

But now having looked over this list, the only possibility I saw
was "realPath" (deprecated), and it didn't return anything.

Hmm, there is the RealPath module and the non-standard SitemapPathModule
which sound promising.
However there is no example for using RealPath in the sitemap.
SitemapPathModule sounds like just what I need, but since it's not
part of Cocoon, I don't know that it will be wise to depend on it
and have to hassle with installing it everywhere we use Cocoon and
again whenever we upgrade. Any chance of SitemapPathModule becoming
part of Cocoon?

Anyway, Ralph, I would be happy to hear from you how to get the
http servlet request from Java. Especially if it's different from
{request:servletPath} and {request:requestURI}, both
of which return the outer URI.

Thanks,
Lars


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to