Hi,
You can try this...

<select size ="1" name = "year">
<%      now = Calendar.getInstance();
        int year = now.get(Calendar.YEAR);
        for(int i=1;i<=2;i++)
        {
%>

                <option value="<%=year%>"><%=year%></option>
<%
                year= year + 1;
        }
%>
        </select>
The above code allows u to make a drop down list box for making a combo box
which gives you options as the current year  & the next 2 years.

Regards,
aruniima


Regards,
aruniima

 -----Original Message-----
From:   panos periorellis [mailto:[EMAIL PROTECTED]]
Sent:   Friday, January 25, 2002 3:18 PM
To:     [EMAIL PROTECTED]
Subject:        COmbo BOxes

Could someone tell me how do i feed data into a combo box..

i have a array of string which i want to upload in a combo box ....


how do i do it... i know in asp we did

<%=additem array.[i]

what is the JSP equivelant..
regards
panos

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com
----------------------------------------------------------------------------

This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recipient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.


E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.


--------------------------------------------------------------------------

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to