Hi Experts, I got a Servlet that shows a simple Form (it also could be
In Jsp as well but its a simple proyect that should be done soon.. then I will learn more about JSPS)
the Form is written by the Servlet using the DoGet Method and
It writes html txt boxes and combo boxes (imput type and options) and retrieves their records from a Database .
Then it waits
Do Post Methods The Result of the validations that users made when they imput data
Let's assume the Form has 2 combo boxes:
Country and State where State depends on the Country's record selected
Here's the problem :
If I select a Country the combox should load retrieve records from a
Query processed by the Servlet (if the Country value =1 the SQL query should retrive the States values 20,21,22 and repaint the html combobox) . I'm familiar with
language codes like VB and Java (Stand alone applications and
Applets) but I don't it find necessary at all to build an entire Applet only for that purpose (only for one Combo Box to be refreshed) so I would like to
A simple way to refresh the ComboBox (actually its a simple html object).
I don't know how to make it with a simple html text form.
I DUNO if I should use JSCRIPT to Reload the Page or Whatever.. In that case how do I join Jscript (its part of the tags of the html forms) with Java Language ?
Any Help will be rewarded..