This link shows a simple example

http://www.mycgiserver.com/~andrewbruno/howto/jsp/implementdropdownlist.
txt

:ab

-----Original Message-----
From: Senthil Raja V [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 August 2001 2:52 PM
To: [EMAIL PROTECTED]
Subject: Re: getting the options in a dropdown from the database


Hi Usha.
i did'nt understand actually what you want.
can you please tell it clearly.
u need <select> list box directly from the database or contents of the
select box.
but here is the code that will bring the contents for the select list
box
from database.
<select>
<%while(rst.next())     {%>
<option value="<%=rst.getString(1)%>"><%=rst.getString(1)%></option>
<%}%>
</select>

rgds
Senthil.

At 08:20 AM 27/08/2001 -0700, you wrote:
>Hi,
>   i would like to get the <select> list box directly from the
> database.How can I do that.
>Thanx
>
>=======================================================================
====
>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://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

========================================================================
===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

==========================================================================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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to