There is a caveat here: If you are using a case-insensitive file system (as I believe both Windows and OS X defaults are), and if your container explodes the .war instead of working out of the archive (as I believe Tomcat does by default), then Home.html and home.html are the same file -- to Tapestry, or to any other piece of code.

I wouldn't rely on this happening, though. Make a custom URL encoding to rewrite it or add a redirect or something.

Cheers,

Paul

On Jan 16, 2006, at 2:58 PM, Brian K. Wallace wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mitch Christow wrote:
Hi Brian,

Thanks again for your help. This works out great now. One last question concerning friendly URL's. Is there a way to ignore case in the URL? For
example http://localhost:8080/myApp/Home.html works fine, while
http://localhost:8080/myApp/home.html throws a PageNotFound exception. Is there a setting in hivemodule.xml, web.xml or any other place that would provide the ability for Tapestry to ignore case and pick the right file?

Regards,
Mitch

Great to hear you have the friendly part working.

To the best of my knowledge, no. Home.html and home.html are (in
non-windowed environments at least) considered two separate and distinct
files. The same behavior can be seen in most other frameworks (caveat:
that I've used, anyway). Perhaps a committer could elaborate, but from
what I see in Tap's code, the check is for ".equals" vs.
".equalsIgnoreCase" and there doesn't appear to be a 'setting' to change
that.

Not saying it'd go too far (not saying it wouldn't either), but you
could always file an issue in Jira as an enhancement.

Brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFDzAkLaCoPKRow/gARAttpAKDtRtvugKFWYPbXR+yZZVrlJL4a5gCfSJi+
I+ZlCmT3D4p9S8+eR6PIk4g=
=n20O
-----END PGP SIGNATURE-----

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



_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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

Reply via email to