[RESOLVED] Bye Bye VB, Hello Java! (Scriptlet Help)
I feel pretty dumb at my new job.
I need some help:
I am trying to write a scriptLET that will hide <tr>'s.
I have a page on the site im working on that displays a lot of client information. I wan't to hide a section of that page if it doesn't pertain to them specifically so I will need to hide a bunch of table rows. Basically I wanna say:
if vect= null
hide all the crap between here and here...
I know it sounds stupid but im new to JAVA woohoo!
Re: Bye Bye VB, Hello Java! (Scriptlet Help)
How come I can't find ANYTHING on this?
Re: Bye Bye VB, Hello Java! (Scriptlet Help)
Well...I sort of figured it out:
<% if (flightVect == null){ %>
<tr>
<tr>
<tr>
<%} %>
However...if I do == null it hides the info regardless and if I do != null it shows the info regardless if it is actually null..haha Help me out.
Re: Bye Bye VB, Hello Java! (Scriptlet Help)
Okay: after hours of being an idiot...I figured it out:
Code:
<% if (flightVect != null && flightVect.size() > 0 && !flightVect.get(0).toString().equals("0")) {
%>
Re: [RESOLVED] Bye Bye VB, Hello Java! (Scriptlet Help)
I just talked to myself all day on this post...that rocks.