aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes DropDownList value changes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "DropDownList value changes" Watch "DropDownList value changes" New topic
Author

DropDownList value changes

Gayani Kanchana
Greenhorn

Joined: Mar 27, 2007
Posts: 19
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

Joined: Jan 10, 2002
Posts: 56180
    
  13

Originally posted by Gayani Kanchana:
value in 1st dropdownlist is set to null


So what's clearing the value?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
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

Joined: Jul 09, 2001
Posts: 1121
Gayani,

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



In IE6, it looks like -

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: DropDownList value changes
 
Similar Threads
struts 2.0 <s:select> tag problem
jsp paarent and child drop downlist database
JComboBox Height
How to use for loop inside of dropdownlist at jsp?
DropDownList value changes