troubleshooting Question

Refreshing simple html text on a Servlet by HTML Events

Avatar of edwbear1976a
edwbear1976a asked on
JavaJava EE
3 Comments1 Solution238 ViewsLast Modified:
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
on the
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
Know
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 know a little about the html syntax with Option <on Change=JavaScriptFunction)
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..
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros