|
-
Oct 12th, 2007, 09:26 AM
#1
Thread Starter
Hyperactive Member
[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!
Last edited by IntelSucks; Oct 12th, 2007 at 09:59 AM.
-
Oct 12th, 2007, 12:22 PM
#2
Thread Starter
Hyperactive Member
Re: Bye Bye VB, Hello Java! (Scriptlet Help)
How come I can't find ANYTHING on this?
-
Oct 12th, 2007, 01:13 PM
#3
Thread Starter
Hyperactive Member
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.
-
Oct 12th, 2007, 01:39 PM
#4
Thread Starter
Hyperactive Member
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")) {
%>
-
Oct 12th, 2007, 01:40 PM
#5
Thread Starter
Hyperactive Member
Re: [RESOLVED] Bye Bye VB, Hello Java! (Scriptlet Help)
I just talked to myself all day on this post...that rocks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|