struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: converting to s2 <s:select>
Date Tue, 28 Aug 2007 17:16:58 GMT
Pavel Sapozhnikov wrote:
> Hi I have this code in my jsp in s1 application I want to get the equivalent
> for s2. I think it has something to do with <s:select> and s:optgroup. Could
> anyone help maybe?
> 
> 
> <html:select property="activeAgencyID">
> 
> <html:option value="">- Select an Agency -</html:option>
> 
> <html:options collection="agency" property="agency_id"
> labelProperty="agency_desc"
> />
> 
> </html:select>

Should be something like

   <s:select
       headerKey='-1' headerValue='- Select an Agency -"
       list='agency' listKey='agency_id' listValue='agency_desc"/>

http://struts.apache.org/2.x/docs/select.html

L.


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


Mime
View raw message