struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alok Garg" <a...@direct2s.com>
Subject Re: Using <html:Options > tag
Date Mon, 28 Oct 2002 05:50:36 GMT
Hello Derek,
Thanks for the reply, I tried using the code sinnpet that u have send, but I
am getting the following error::

javax.servlet.jsp.JspException: Cannot create iterator for 1=Beauty
 at
org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:448)
 at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:236)

where 1 is the Key of the Hashtable which is Integer
and "beauty" is the Value of the Hashtable.

Thanks
Alok Garg
----- Original Message -----
From: "Derek Lin" <dereklin@hotmail.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Monday, October 28, 2002 10:48 AM
Subject: Re: Using <html:Options > tag


> Here is my select population code:
>
>  <td class="formItem">
>   <logic:present name="countries">
>   <html:select property="companyCountry" size="1" value="US">
>    <html:options collection="countries" property="code"
> labelProperty="country" />
>   </html:select>
>   </logic:present>
>   <logic:notPresent name="countries">
>   <html:select property="companyCountry" size="1">
>    <option value="US">UNITED STATES</option>
>   </html:select>
>   </logic:notPresent>
>
>  </td>
> -- Derek
> ----- Original Message -----
> From: "Alok Garg" <alok@direct2s.com>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Sunday, October 27, 2002 8:31 PM
> Subject: Using <html:Options > tag
>
>
> Hello,
>  I am facing a problem using <html:options> tag.
> The case:
> 1)  I have a Hashtable map which contain an Id (java.lang.Integer) as the
> Key and Description (String) as the value.
>
> 2) I have to iterate this Hashtable and display the values in a select
box.
>
> Please guide me with the above problem
>
> Thanks
> Alok
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>



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


Mime
View raw message