Results 1 to 5 of 5

Thread: [RESOLVED] Bye Bye VB, Hello Java! (Scriptlet Help)

  1. #1

    Thread Starter
    Hyperactive Member IntelSucks's Avatar
    Join Date
    Oct 2003
    Location
    Ubuntu Lovers Club
    Posts
    453

    Resolved [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.

  2. #2

    Thread Starter
    Hyperactive Member IntelSucks's Avatar
    Join Date
    Oct 2003
    Location
    Ubuntu Lovers Club
    Posts
    453

    Re: Bye Bye VB, Hello Java! (Scriptlet Help)

    How come I can't find ANYTHING on this?

  3. #3

    Thread Starter
    Hyperactive Member IntelSucks's Avatar
    Join Date
    Oct 2003
    Location
    Ubuntu Lovers Club
    Posts
    453

    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.

  4. #4

    Thread Starter
    Hyperactive Member IntelSucks's Avatar
    Join Date
    Oct 2003
    Location
    Ubuntu Lovers Club
    Posts
    453

    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")) { 
    %>

  5. #5

    Thread Starter
    Hyperactive Member IntelSucks's Avatar
    Join Date
    Oct 2003
    Location
    Ubuntu Lovers Club
    Posts
    453

    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
  •  



Click Here to Expand Forum to Full Width