thank you ray, it works ..

--buics



Ray Madigan wrote:

> This is what i told youthe other day.
>
> The collection in the Option tag has to be the name of an attribute
> in the request or session.
>
> In the Action object make a call like:
>
> session.setAttribute ( "code1data", code1data );
>
> where code1data is the collection.
>
> Then the collection will work correctly in your options tag.
>
> -----Original Message-----
> From: Buics [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 23, 2003 4:42 PM
> To: Struts Users Mailing List
> Subject: Re: html select problem, help me please
>
> This is the error message
>
> C:\tomcat\jakarta-tomcat-4.1.18\work\Standalone\localhost\ntep\chemical\chma
> in_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]

--
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