You'll need to understand the DOM model of HTML documents:
which is a special case of the general DOM model:
You will use a few of those methods to modify the HTML document.
I got the point but only wording mistake took place.
My question is ----
In my jsp page I have 2 combo boxes--data of 2nd comboBox is dependent on the 1st. The data for 2nd is previously obtained from a database.
I got the point ,but the mistake was of wording i used.
My question is --
In my jsp page I have 2 combo boxes--data of 2nd comboBox is dependent on the 1st. The data for both is previously obtained from a database.
OK, your onchange code is going to have to use an XMLHttpRequest:
It will use one of these objects to send a request with whatever parameters are needed to producde the new combobox data back to a servlet which will send back a response.
Don't forget to do a setTimeout() to call a failure method after a certain time - which is cancelled by the onreadystatechange handler on success - to handle server non-response!
I want to know is no method or coding to do this in JSP rather than xml.