Handling Tomcat relative URLs and mixed case.

Recently I had an issue with the ColdFusion internal Tomcat server that bears repeating.  If you are using mixed case directory names and relative URLs to load your JS And CSS.  It is important to note that Tomcat will report the links as 404 unless you are using  Firefox.  Since I develop with Firefox, I didnt see this until we got to testing.  The exhibited behavior is a fully loaded ColdFusion page with all JS and CSS links reported as 404.  

There is no fix for this.  Tomcat does this as a security feature and has no way of being modified.  Lowercase directory names are recommended.

Leave a reply

Your email address will not be published. Required fields are marked *

By submitting this form, you accept the Mollom privacy policy.

Related