On Wed, 2003-03-26 at 10:20, Paul Blundell wrote:
> I am trying to create a month dropdown dropdown using the datetime 'dt' tag.
>
> The following code results in an error:
>
> <html:select property="startMonth">
> <html:option value="Month"/>
> <dt:months id="mon" locale="true">
> <html:option value="<jsp:getProperty name="mon"
> property="monthOfYear"/>">
> </dt:months>
> </html:select>
>
> Any ideas?
Yes, you can't embed tags within tags. Take a look at <html:options>
tag or if you only need a single value from a bean use:
<bean:define id="month" name="mon" property="monthOfYear/>
<html:select property="startMonth">
<html:option value="Month"/>
<dt:months id="mon" locale="true">
<html:option value="<%=month%>">
</dt:months>
</html:select>
>
> Thanks
> Paul
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]