Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Rep Power

    Default HashMap to JavaScript

    I have hashmap array in servlet how i can pass to javascript and form select box list out of it,mine hash map array is key=>value paired,is i need to form json then pass or directly pass the hashmap by printing ???????

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    I would do the convert the hashmap to a JSON string representation. that site is pretty good for listing existing open source API to help do this.

Similar Threads

  1. Hashmap to TXT and TXT to Hashmap
    By elvinny in forum Advanced Java
    Replies: 4
    Last Post: 02-16-2011, 11:12 PM
  2. Replies: 7
    Last Post: 12-08-2009, 07:17 PM
  3. HashMap Help
    By ScaryJello in forum New To Java
    Replies: 2
    Last Post: 04-15-2009, 09:18 AM
  4. HashMap
    By koolhoney in forum Advanced Java
    Replies: 1
    Last Post: 03-30-2009, 08:08 PM
  5. Hashmap
    By dirtycash in forum New To Java
    Replies: 5
    Last Post: 12-03-2007, 02:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts