• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DropDownList value changes

 
Gayani Kanchana
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a web application which has 2 dropdown lists.First i chose value for the first dropdownlist and then go to second dropdownlist to select a value.When a value comes to 2nd dropdownlist value in 1st dropdownlist is set to null giving error "statement parameter 1 is not set." this value is set to null in 1st dropdownlist value process change event. i am using java netbeans 5.5. Pls help

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64175
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gayani Kanchana:
value in 1st dropdownlist is set to null


So what's clearing the value?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are posting back the page to fill in the second list, you should be reselecting the value on the server.

Eric
 
Dan Drillich
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gayani,

You might want to consider the optgroup tag within the select tag.



In IE6, it looks like -

Regards,
Dan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic