Looking at the source for SelectTag.doStartTag(), it looks like if "value"
is not set, it expects the "property" to be an array property, not a scalar.

> -----Original Message-----
> From: Rea, Ron [mailto:rear@;coramhc.com]
> Sent: Friday, October 18, 2002 2:07 PM
> To: '[EMAIL PROTECTED]'
> Subject: nested:select default value
> 
> Hello,
>  
> I need to pre-set the value displayed in a drop-down via the 
> <nested:select>
> tag.  Although the property used in the nested select tag has 
> a value (I
> wrote it out in the column next to the dropdown column to 
> verify this), the
> dropdown is not being preselected.  Any ideas:
>  
> Example: (processResp is "PMA")
> <nested:select property="processResp"><size="1">
>             <html:option value=""></html:option>
>             <html:option value="CMPL">CMPL</html:option>
>             <html:option value="OVRD">OVRD</html:option>
>             <html:option value="RDA">RDA</html:option>
>             <html:option value="BMA">BMA</html:option>
>             <html:option value="PMA">PMA</html:option>
>             <html:option value="DEND">DEND</html:option>
> </nested:select>

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

Reply via email to