We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

populating dropdowns using xml

hipal
hipal asked
on
Medium Priority
257 Views
Last Modified: 2012-05-11
I am looking for java / jaxb code to populate drop downs based on values in xml

Thanks
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Well. I can try that too.

please give ify ou have code for that.

My webpage has mulitple drop downs which gets populated from same xml based on different tag porperties. for example

Drop Down 1
Drop down 2

XMl -->
<dropdown name="1">
   <item>
   <item>
</dropdown>
<dropdown name="2">
   <item>
  <item>
</dropdown>

Thanks

Author

Commented:
And the value in one drop down changes on the basis on selection in some other drop down.

Do you think is such scenario, javascript will the right/best option ?
Awarded 2011
Awarded 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
I am looking for this thing using xml. :(
CERTIFIED EXPERT
Top Expert 2016

Commented:
This is perhaps the sort of thing you can do- based on an xsl transform:

http://www.stylusstudio.com/xsllist/200211/post91120.html
Awarded 2011
Awarded 2011

Commented:

If you have XML file form which you want to take values for
dropdown menus of the web page, then the simplest thing is to write a servlet,
which would parse this XML file and produce the web page with required
dropdowns

If you want that these drop downs could be "active" on the page - in a sense that one slection
should affect the default avlue or the total content of another select box - then
you'll need javaScript to implement that on the web page, unless you want
to reload the page after each selection
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.