Two Laptop Bag*
The moose likes Other Open Source Projects and the fly likes how to, JSON data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "how to, JSON data" Watch "how to, JSON data" New topic
Author

how to, JSON data

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I have a hashMap ,HMap1 which contains 3 values...

How to prepare this as JSON and use it in jsp??

This statement tells me that I have 1 value in my map
!!!


I did like this...



I use the plugin jsonplugin-0.32.jar...

This jar should be ok or something else should be used??

It doesn't print anything?? what could it be? and how do I use this in my Javascript...

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I converted like this,it worked with a different plugin though...



Now in JS I have...



how do I use that json string in the above code??


I also have this in struts.xml




Though it is struts2 ,the core issue lies with JS and hence the post here... thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to, JSON data
 
Similar Threads
iterate doubt
json+struts2
JSONObject from two packages
Struts2 mapping query
JSON+Jquery