View Single Post
Old 05-17-2012, 06:37 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,645
Thanks: 4
Thanked 2,450 Times in 2,419 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Its been too long since I've used JSP, but I'm quite sure ops are the same. & is a bit operator, not a logical operator, and in typical java it should throw a compilation error since you cannot cast from int to boolean. Change those from & to &&.
Oh and use .equals. Strings are immutable, so while "a" == "a", "a" != new String("a"). Using .equals will always compare the value instead.
Fou-Lu is offline   Reply With Quote