Basics of java programming: == operator compare objet instances, not their content. To check if 2 differences instance are the same, use the equals() method. Eg:
if (Pippo.equals("on")) { ... } You should probably start by learning java language (J2SE) before you start learning java enterprise (J2EE). En l'instant précis du 22/05/07 16:39, Massimiliano PASQUALONI s'exprimait en ces termes: > 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]