-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
>> Subject: Re: [OT] "if" don't work?!?!?
>>
>> String Pippo = "on";
>>
>> if(Pippo == "on")
>>    System.err.println("Pippo is on, man!");
> 
> Again, that's not what the OP coded; Pippo was retrieved from the
> request, not set to a constant.  Changing the context of the if
> statement can certainly changes the result.

Agreed. Your quote, however, was out of context. You only showed the
comparison between a (most likely String) reference type and a literal
string and asserted that it was guaranteed not to work. In that context
(i.e. none), your statement was not true.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFGU0vc9CaO5/Lv0PARAptfAJd/xAWaVEtfhSAnSYhGMvKGqpEVAJ9KE5hq
BvycOhmewUhMklkNDbeatg==
=wizm
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to