you can do dynamic drop downlist box.
get the data from the bean through vector.
write a code in jsp tags like this:
<%
for(int i=0;i<vectorname.size();i++)
{
<OPTION
value=vectorname.elementAt(i)>vectorname.elementAt(i)</option>
}
%>
-----Original Message-----
From: Veronique Dupierris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 11, 2000 12:21 PM
To: [EMAIL PROTECTED]
Subject: Re: has anyone implemented dynamic drop down list boxes using
JSP?
Hi,
If I understand what your looking for, i used jsp to fill list in form
from a
list in a bean; I first initiated
my list with the wanted value from a db, then in the jsp page i get an
iterator
over the list and generate my
list box :
<% while(allValues .hasNext() ) { %>
<OPTION > <%= allValues.next()%>
<% } %>
...
Is this what you was looking for ???
"Orr, Geoffrey" a �crit :
> I know that I can generate my entire form using a servelet, with drop down
> values populated
> from the database, but is there anyway I can embed this sort of function
in
> a file system html
> or jsp page?
>
> I'm convincing myself that this can't be done, but can it? Has anyone
> figured out any clever workarounds?
>
> Thanks,
>
> Geoff Orr
>
> Application Systems Engineer 5
> Pricing Engine Group
> Norwest Mortgage Systems Development Group
> Wells Fargo Service Company
> 301-846-8403 (6-8403)
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html