BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: [JB9 BUG] getParameter is case-sensitive

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues
View previous topic :: View next topic  
Author Message
Greg
Guest





PostPosted: Wed Aug 06, 2003 6:07 pm    Post subject: Re: [JB9 BUG] getParameter is case-sensitive Reply with quote




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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.