• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

update a list menu

 
pol pol
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic