PDA

Click to See Complete Forum and Search --> : [RESOLVED] Bye Bye VB, Hello Java! (Scriptlet Help)


IntelSucks
Oct 12th, 2007, 09:26 AM
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!

IntelSucks
Oct 12th, 2007, 12:22 PM
How come I can't find ANYTHING on this?

IntelSucks
Oct 12th, 2007, 01:13 PM
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.

IntelSucks
Oct 12th, 2007, 01:39 PM
Okay: after hours of being an idiot...I figured it out:

<% if (flightVect != null && flightVect.size() > 0 && !flightVect.get(0).toString().equals("0")) {
%>

IntelSucks
Oct 12th, 2007, 01:40 PM
I just talked to myself all day on this post...that rocks.