As previously mentioned your examples should work as modified below:
String Pippo = request.getParameter("abilitato");
if (Pippo.equals("on")) {
............
}
Pippo = request.getParameter("abilitato");
Pluto = request.getParameter("abilitato");
if (Pippo.quals(Pluto))
Pippo == Pluto will never be true unless you possibly set Pippo = Pluto first.
Massimiliano PASQUALONI <[EMAIL PROTECTED]> wrote:
counter-order!!!
The equals method don't work if I put the request in his parameter, but if a
read the request and I set a String, if i put this string in the parameters,
it work!
-----Messaggio originale-----
Da: Propes, Barry L [mailto:[EMAIL PROTECTED]
Inviato: martedì 22 maggio 2007 17.04
A: Tomcat Users List
Oggetto: RE: "if" don't work?!?!?
if (Pippo.equals(Pluto)) maybe?
-----Original Message-----
From: Massimiliano PASQUALONI
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 9:40 AM
To: 'Tomcat Users List'
Subject: "if" don't work?!?!?
Hi guy!
Wat's happen??
If i read an checkrequest post
String Pippo = request.getParameter("abilitato");
out.print(Pippo);
return me= on
If I try to make a condition whit if:
if (Pippo == "on") {
............
}
these don't work
And is'nt the first time,
if I try
Pippo = request.getParameter("abilitato");
Pluto = request.getParameter("abilitato");
the if (Pippo == Pluto ) don't work!
:-(
please, help me!
Massimiliano PASQUALONI
Data Processing S.r.l.
Reparto EDP
S.S. 100 BA-TA Km 18
c/o "IL BARICENTRO"
torre D
70010 CASAMASSIMA (BA)
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected] To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4)
AntiVirus: ClamAV 0.88.4/3281 - Tue May 22 10:50:43 2007
by Markus Madlener @ http://www.copfilter.org
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.