Re: viewing combo box

2001-06-09 Thread Martin Cooper

If you need to test for the property value being null, you can use the
 tag. If you need to test for a vector which exists but which
has no elements, you'll have to use another field in your form, as someone
else suggested, or use scriptlets in your page. (A better way of handling
this should appear in Struts 1.1 before too long.)

--
Martin Cooper


- Original Message -
From: "Alex Colic" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 1:49 PM
Subject: viewing combo box


> Hi,
>
> lets say you have a combo box filling from a vector. I can get this to
work
> but I don't want the combo box to show if there are no options in it. In
> other words if the vector=0. What the best way to do this.
>
> Thanks for the help.
>
> Alex
>
>





Re: viewing combo box

2001-06-07 Thread William Jaynes

Easiest thing is to have a propery in your ActionForm that tests whether
the combo box is empty or not. Then in your jsp you'll need to surround
the select/option tags with a logic tag of some kind, like


...


- Original Message -
From: "Alex Colic" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 4:49 PM
Subject: viewing combo box


> Hi,
>
> lets say you have a combo box filling from a vector. I can get this to
work
> but I don't want the combo box to show if there are no options in it.
In
> other words if the vector=0. What the best way to do this.
>
> Thanks for the help.
>
> Alex
>




viewing combo box

2001-06-06 Thread Alex Colic

Hi,

lets say you have a combo box filling from a vector. I can get this to work
but I don't want the combo box to show if there are no options in it. In
other words if the vector=0. What the best way to do this.

Thanks for the help.

Alex

 Alex Colic.vcf