yashoda
11-07-2000, 07:58 PM
This might sound like a javascript question but I have already asked it in all the javascript (I know of) forums
without any correct answer. So here it is..
I have a jsp created dynamically from the server. It has 2 drop down list boxes list1 and list2. When the user
changes the selection in list1, the options in list2 should change for the selected option in list1. Both the list1
and list2 options come from the database and I have a java class which has functions to retrieve these values.
1. I need to be able to call the java function onChange of list1 passing the selected value as one of the
parameters to this java function. The java function takes a java.lang.String as parameter. How do I do this?
2. The java function returns a java.util.Vector as a result (this contains the list of new options for list2. How do
I receive this into a javascript variable?
My knowledge with javascripts is very limited. Can somebody suggest a solution to the above or suggest a
different approach to solving the problem?
without any correct answer. So here it is..
I have a jsp created dynamically from the server. It has 2 drop down list boxes list1 and list2. When the user
changes the selection in list1, the options in list2 should change for the selected option in list1. Both the list1
and list2 options come from the database and I have a java class which has functions to retrieve these values.
1. I need to be able to call the java function onChange of list1 passing the selected value as one of the
parameters to this java function. The java function takes a java.lang.String as parameter. How do I do this?
2. The java function returns a java.util.Vector as a result (this contains the list of new options for list2. How do
I receive this into a javascript variable?
My knowledge with javascripts is very limited. Can somebody suggest a solution to the above or suggest a
different approach to solving the problem?