wood burning stoves 2.0*
The moose likes JSP and the fly likes update a list menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "update a list menu" Watch "update a list menu" New topic
Author

update a list menu

pol pol
Greenhorn

Joined: Nov 27, 2002
Posts: 1
I've 2 list menu in my jsp page. I'ld like to update the second list menu with data of db when I change the value of the first.
I give u the code of my page:
<select name="projet">
<%
try
{
ResultSet rs = nomBean.Execute_requete("select * from tab_Projet");
if(rs!=null)
{
while (rs.next())
{
...
}
<select name="users">
</select>
thanks u for ur help
Sreenivasa Majji
Ranch Hand

Joined: Jul 12, 2001
Posts: 224
Looks like this can be generated thru JavaScript. In the first list, create a function (which can be called whenever there is a change on the first list). In that function, get the results from the database and fill up the data in the second list.


Sreenivasa Majji
 
Don't get me started about those stupid light bulbs.
 
subject: update a list menu
 
Similar Threads
Table Driven menu
Populate list box
onchange event of drop down list - problem F1 pls
selecting multiple rows to update value
doubt on div display