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

    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
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    I would do the convert the hashmap to a JSON string representation. that json.org 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-17-2011, 12:12 AM
  2. Replies: 7
    Last Post: 12-08-2009, 08:17 PM
  3. HashMap Help
    By ScaryJello in forum New To Java
    Replies: 2
    Last Post: 04-15-2009, 10:18 AM
  4. HashMap
    By koolhoney in forum Advanced Java
    Replies: 1
    Last Post: 03-30-2009, 09:08 PM
  5. Hashmap
    By dirtycash in forum New To Java
    Replies: 5
    Last Post: 12-03-2007, 03: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
  •