Click to See Complete Forum and Search --> : Scriptlet, if, then don't show fields


alt
10-10-2007, 02:46 PM
I have a section on my page that has a lot of information for clients. (i.e. hotel reservation info, flight information, price, etc.)

This section is essentially 1 big table. I want to hide certain table rows for the FLIGHT information section if they did not Book a flight. How would I go about doing this with a scriptLET. basically if flightVect= null...hide TR. let me know



**just started new job doing all kinds of java stuff....only thing ive done before this is VB6 :(

VB6 is DEAD.

alt
10-12-2007, 09:44 AM
Doesn't make sense?


I have googled and googled, but can only find javaSCRIPT methods...which won't work.

Is there a way to say:

if null

<omit>
<tr> klsdfkasd
<tr> kljasfklds
</omit>




obviously not gonna be anything close to that, just trying to give a better idea of what I wanna do.

alt
10-12-2007, 02:23 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.