You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dhruva B. Reddy" <dr...@resortquest.com> on 2003/03/31 19:43:53 UTC

Populate options with integers

Hi,

I'm trying to populate a drop down list with integers.  Basically, I 
want the following to be generated:

	<select>
   	  <option value="1">1</option>
   	  <option value="2">2</option>
   	  <option value="3">3</option>
   	  <option value="4">4</option>
	</select>

Is there an easy way to do this?  I can't seem to find anything in the 
documentation or on Google.

Thanks,
Dhruva
-- 
Dhruva B. Reddy
ResortQuest International, Inc.
phone:  +1 303 604 4893
aim:    dhruvarqi


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


Re: Populate options with integers

Posted by Dan Tran <da...@hotmail.com>.
Take alook at Struts-example.war in the distribution
It uses html:select/html:options and LabelValueBean
to do what you need.

-Dan

----- Original Message ----- 
From: "Dhruva B. Reddy" <dr...@resortquest.com>
To: "Struts User Mailing List" <st...@jakarta.apache.org>
Sent: Monday, March 31, 2003 9:43 AM
Subject: Populate options with integers


> Hi,
> 
> I'm trying to populate a drop down list with integers.  Basically, I 
> want the following to be generated:
> 
> <select>
>      <option value="1">1</option>
>      <option value="2">2</option>
>      <option value="3">3</option>
>      <option value="4">4</option>
> </select>
> 
> Is there an easy way to do this?  I can't seem to find anything in the 
> documentation or on Google.
> 
> Thanks,
> Dhruva
> -- 
> Dhruva B. Reddy
> ResortQuest International, Inc.
> phone:  +1 303 604 4893
> aim:    dhruvarqi
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

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