tomcat-users mailing list archives

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

All,

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkry9csACgkQ9CaO5/Lv0PC33wCeLx/vVxgf6hREh/wizB7c7kYd
8hgAnRLjRDHX5CQRGpcpaB7qOZnxbON0
=FwIU
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message