This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
</table> With these if(theJspCriterium.getComponentName()=="text ") i have a problem. the getComponentName() is a method with a returned String value. I can write the value on the screen but i couldn't do the if. I don't know why? Could anyone help through, please? $Regards
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
posted
0
In Java to compare Strings you should always use the "equals" method. The "==" operator just compares the references. Your if should read: