tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: dumb question regarding servlets in packages running in tomcat.
Date Tue, 01 Aug 2000 22:27:15 GMT
"Boniakowski,Jeb" wrote:

>
> Why does this matter?  I have upcase in the classnames.  Does it only
> amtter with dirs?
>

On an operating system that is case sensitive (like any Unix, for
example), case matters on *all* filenames (both directories and
individual files).  Technically, URLs are supposed to be case sensitive
as well, but most Windows based servers do not seem to enforce this.

On many (most?) Java compilers, case matters in package and class
names.  Package "COM.foo" is different from package "com.foo", and class
"MyClass" is different from "myclass", even in a Windows environment.

Bottom line -- you should *always* code things in a case sensitive
manner, even on a Windows system.  There is no reason to leave yourself
open to potential problems caused by this.  And, who knows, your code
might someday have to work on a different platform as well, and it would
be pretty sad if your being unconcerned about this prevented that
portability.

Craig McClanahan



Mime
View raw message