You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pavel Sapozhnikov <pa...@gmail.com> on 2007/08/27 20:13:19 UTC
converting to s2
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>
--
Pavel Sapozhnikov
xFact, Inc
pavel@xfact.com
Re: converting to s2
Posted by Laurie Harper <la...@holoweb.net>.
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