This is the error message

C:\tomcat\jakarta-tomcat-4.1.18\work\Standalone\localhost\ntep\chemical\chmain_jsp.java:422:
 setCollection(java.lang.String) in
org.apache.struts.taglib.html.OptionsTag cannot be applied to (java.util.Collection)
                  _jspx_th_html_options_0.setCollection(code1data );


Sri Sankaran wrote:

> What is the error?
>
> -----Original Message-----
> From: Buics [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 21, 2003 10:08 PM
> To: Struts Users Mailing List
> Subject: html select problem, help me please
>
> I have a collection named code1data, in logic:iterate it works fine, but when I 
> apply this to html:select it goes wrong. Anybody could help me in html:select tag.
>
> here's my script ..
>
> <TABLE><tbody>
> <logic:iterate id="mydata" collection="<%=code1data %>">
>     <tr>
>       <td >&nbsp;</td>
>       <td>
>        &nbsp;<bean:write name="mydata" property="cd"/>
>       </td>
>       <td >
>        &nbsp;<bean:write name="mydata" property="descrip"/>
>       </td>
>      </tr>
>  </logic:iterate>
>  </tbody>
> </TABLE>
>
> <html:select property="classification" size="1">
>     <html:options collection="<%=code1data %>"  property="cd" 
> labelProperty="descrip"/> </html:select>
>
> --
> It's good to be slow and steady; but it's better to be fast and reliable.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
It's good to be slow and steady; but it's better to be fast and reliable.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to