 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Greg Guest
|
Posted: Wed Aug 06, 2003 6:07 pm Post subject: Re: [JB9 BUG] getParameter is case-sensitive |
|
|
Rich Wilkman <richw (AT) formlessvoid (DOT) com> wrote:
| Quote: | Greg:
The main was added as a convenience for testing the Applet; it isn't a
special version or anything. This will follow all the rules for running
under Java and that means case sensitivity. You cannot count on the VM
in the browser to *not* be case sensitive (esp. now that the Plugin is
the main player) so, like any other Java code, assume case sensitivity
and code accordingly (i.e., promote or demote strings before checks, etc.).
|
If this was an application I would agree, but in an applet it is not possible to code for case-sensitivity of parameters.
The parameter name comes from the end-user via html. The applet java code never sees what parameters are passed and so cannot make any case adjustments. It can only ask for a parameter of a given name.
It would be impractical to call getParameter() with every possible case combination of a parameter name.
Neither sun or microsoft versions of getParameter() impose case restrictions and look after that internally, storing parameters in a vector of lower case strings.
JBuilder should do the same.
Greg.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|