I am newbie in Java Servlets. I have 2 dropdowns, say A and B, and I have this situation where if dropdown A changes, without reloading the page, dropdown B fills or populates data from the database.
I have seen a solution here in which it is said that this can be done by using jQuery. This is URL for doing this How to generate dynamic drop down lists using jQuery and jsp?
I wrote a json string on the response stream but when I check the values returned from it by using alert(options);
it is returning null
.
but when it write response.getWriter().write(json);json has got values not empty
I don't know what to do.