struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Slattery, Tim - BLS" <Slattery....@bls.gov>
Subject RE: optionsCollection ...
Date Wed, 25 Feb 2004 14:50:32 GMT
> Someone have one example of html:optionsCollection  with html:select.

<html-el:select property="domestic_Foreign">
   <html-el:optionsCollection property="domesticForeignList" 
	    value="code" label="value"/>
 </html-el:select>

The FormBean contains a domestic_Foreign property (a string), and a
domesticForeignList property. That returns a collection of beans, each of
which has "code" and "value" properties.

--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message