Wes Strater wrote:
>
> 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.
Surely this is just a case of using mod_rewrite with a case insensitive
regexp? I don't know the exact syntax for mod_rewrite, but I'd be very
surprised if this wasn't pretty simple to achieve. I mean the
mod_rewrite equivalent of the following perl:
s/servlets\/myservlet/servlets\/myservlet/i
It should be equally easy to include all the possible parameters your
servlet can accept in the rewrite rule, if the parameters are simple
enough that users are expected to type them in themselves.
As an aside, unix filenames are case sensitive so if your webserver is
running on unix, ALL your urls will be case sensitive unless you do
something like this. Servlets are no different than the rest of the
world.
Hope this helps.
Stuart.
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]