Wes Strater <[EMAIL PROTECTED]> writes:
!I brought up the issue of case sensitivity on a different list and was
!slammed for being a terrible programmer. My point was that the servlet name
!and the parameters are case sensitive. If a user uses the wrong case for
!the servlet name, they can not access your site. If you are running a
!commerical site, you are losing business. If the user uses the wrong case
!for a parameter, you have to do extra coding to check for the parameter.
This doesn't entirely avoid the issue, but may mitigate
it somewhat.
Don't have users access the servlet directly. Use a web page
and SSI to invoke the servlet. That way the case sensitivity
of the servlet name (and of course the parameters) isn't ever
an issue. I don't think you can avoid using case-correct names
for a servlet, because the servlet is a Java class, and Java
class names are case sensitive. Then you've at least simplified
the problem to the point where you are only worried about
avoiding case sensitivity for the html page URL. I'm not aware
of an Apache configuration to address that issue, but if you
name your web pages exclusively in lower case, I doubt you'd
run into many problems. If you need a more robust solution
than that, I suspect you could grovel through the Apache source
to find the place where file searches take place, and code some
kind of name matching scheme that you would be happy with.
PS: I've had requests for a variant of this problem, the
"how do I let people specify 'foo.htm' as the URL yet still
find the file 'foo.html', or vice versa?". Symbolic links
are the only kludge I found for that. I suspect any further
discussion on these kludges, if not overly related to JServ,
should move to some other appropriate apache list. Hopefully
one exists with smaller proportion of slammers than you last
encountered.
====================================================
= Reid M. Pinchback =
= I/T Delivery, MIT =
= =
= Email: [EMAIL PROTECTED] =
= URL: http://mit.edu/reidmp/www/home.html =
====================================================
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]