SCJP 1.4, SCJD 1.4, SCWCD 1.3, SCBCD 1.3, IBM Certified Solution Developer -WebSphere Studio V5.0
Originally posted by Jason Menard:
Maybe this bit of html/javascript will help you out:
You'll notice in the javascript that the arrays are hardcoded. You would want to populate this from your beans or properties file. A scriptlet with out.println statements that construct your arrays based on the contents of your beans should suffice. In other words, you're dynamically writing the JavaScript that allows the whole thing to work.
Something else to notice is the html for the "cities" list. You'll see that I have four empty option tags. You will need to dynamically create the same number of these tags as the maximum size of data that will be used to populate this list. In the case of my example, you'll see that max size is four.
HTH
[ April 12, 2004: Message edited by: Jason Menard ]
Don't listen to Steve. Just read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|