tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edoardo Panfili <edoa...@aspix.it>
Subject Re: "if" don't work?!?!?
Date Tue, 22 May 2007 14:44:10 GMT
Massimiliano PASQUALONI ha scritto:
> 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") {
> 
>             ............    
> 
>         }

Maybe possible that I don't understand...

String pippo = request.getParameter("abilitato");
if (pippo.equals("on")) {
	// ...
}


Edoardo

-- 
edoardo@aspix.it
AIM: edoardopn
Jabber: edoardopa@talk.google.com
tel:075 9142766

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


Mime
View raw message