tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Hash (#) character as context delimiter '/' stand-in
Date Thu, 05 Nov 2009 15:56:59 GMT
Hash: SHA1


Any ideas? I'm also still curious about the decision to use the # in the
first place. I read in a recent post that _ used to be the character of
choice. Was that changed for any particular reason?

- -chris

On 11/4/2009 11:41 AM, Christopher Schultz wrote:
> All,
> I'm trying to use the foo#bar convention for a deployment path yielding
> "/foo/bar" as my context path and everything seems to work as expected.
> Except that I'm using Cocoon with one of my projects.
> For Cocoon, everything is a URL. When Cocoon tries to build URLs to
> point to, say, files on the disk in the deployment directory, it gets a
> URL like "file:///home/path/to/tomcat/webapps/foo#bar/some/file" which
> ends up trying to access "file:///home/path/to/tomcat/webapps/foo" which
> is neither a file nor a directory.
> :(
> One obvious solution is to use a conf/Catalina/localhost/foo#bar.xml
> file and deploy the webapp somewhere else. I'd honestly rather not do
> that, but my only other option is to replace '/' in the URL with '-'
> which I've already done because /something/ had to be done.
> Any other suggestions?
> Can anyone comment on the decision to use '#' as the stand-in for '/' in
> the first place? Was it intentionally something that could not appear in
> the path of a legit URL?
> Are there any options for changing the '/' stand-in to, say, ':' or
> something more URL-friendly? I suspect this would require a patch to the
> Tomcat source.
> Thanks,
> -chris

- ---------------------------------------------------------------------
To unsubscribe, e-mail:
For additional commands, e-mail:

Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message