wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "C:if misunderstanding" Watch "C:if misunderstanding" New topic
Author

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
OOOOOOOOOOOOOR

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

Joined: Jan 10, 2002
Posts: 60785
    
  65

Also use the empty operator rather than testing for null.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: C:if misunderstanding
 
Similar Threads
location.href not working on FireFox 3.5
Creating a masked popup in JavaScript
JS text in html page
Problem with c:if .. /c:if tag
Setting Value Attribute of Bean Property in jsp in Struts Application