wood burning stoves 2.0
The moose likes JSP and the fly likes C:if misunderstanding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "C:if misunderstanding" Watch "C:if misunderstanding" New topic

C:if misunderstanding

Charessa Reilly
Ranch Hand

Joined: May 26, 2011
Posts: 39
I think I'm operating under some sort of misunderstanding of "if" or maybe JSP and even Java in general. I have this code:

When it executes I get a popup alert that says "simone mitchell" (the value previously put into irecord.manager) then a popup that says "up yours" (you can tell I'm getting frustrated at this)

Shouldn't I get a popup in between the two? How can both those "if" statments fail?
Charessa Reilly
Ranch Hand

Joined: May 26, 2011
Posts: 39

it could be I'm stupid. Just noticed I'm missing some $ there.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63062

Also use the empty operator rather than testing for null.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: C:if misunderstanding
jQuery in Action, 3rd edition