See commons-validation which comes with struts. The 'required' attribute does it for you.

<form name="myForm">
  <field property="pull-down-property" depends="required">
     <arg0   key="prompt.choose.gold.or.platinum"/>
  </field>
</form>

Cheers
Koni

Mick Knutson wrote:

I have a pull-down menu with 3 values "", "gold", and "platinum". How can I
validate that "" is not the selected option?


--- Thanks Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to