This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes json in struts2 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 » Frameworks » Struts
Bookmark "json in struts2" Watch "json in struts2" New topic
Author

json in struts2

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
in action class...
--------------------------



in the above, hashmap contains 2 values

will the above one prepare the list to json?? I added jsonplugin-032.jar .

javascript:
--------------




My select box to be populated :--
--------------------------------------



I also get this, preventing me to check anything as it asks me to save that particular jsp where I want to perform the above operation...

----------------------------------------------------------------------------------------------------------------
Current policy properties
thread.thread_num_limited: true
file.write.state: disabled
net.connect_ex_dom_list:
mmc.sess_cab_act.block_unsigned: false
mmc.sess_cab_act.action: validate
mmc.sess_pe_act.block_blacklisted: false
mmc.sess_pe_act.block_invalid: true
jscan.sess_applet_act.stub_out_blocked_applet: true
file.destructive.in_list:
jscan.sess_applet_act.block_all: false
file.write.in_list:
file.nondestructive.in_list:
window.num_limited: true
file.read.state: disabled
jscan.session.origin_uri: http://jsonplugin.googlecode.com/files/jsonplugin-0.32.jar
file.nondestructive.state: disabled
jscan.session.user_ipaddr: 10.81.82.131
net.connect_other: false
thread.thread_num_max: 8
file.destructive.ex_list:
file.nondestructive.ex_list:
file.write.ex_list:
jscan.sess_applet_act.sig_invalid: block
file.read.in_list:
mmc.sess_cab_act.block_invalid: true
jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5
mmc.sess_pe_act.action: validate
thread.threadgroup_create: false
net.connect_in_dom_list:
net.bind_enable: false
jscan.sess_applet_act.sig_trusted: pass
jscan.session.user_name: 10.81.82.131
jscan.session.user_hostname:
file.read.ex_list:
jscan.sess_applet_act.sig_blacklisted: block
jscan.session.daemon_protocol: http
net.connect_src: true
jscan.sess_applet_act.unsigned: instrument
mmc.sess_pe_act.block_unsigned: false
file.destructive.state: disabled
mmc.sess_cab_act.block_blacklisted: true
window.num_max: 5
----------------------------------------------------------------

what is with this??
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Could anybody give me a working sample to read back jsonarray from struts2 action class ??? I am struggling to make a move here...

Thanks!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: json in struts2
 
Similar Threads
s:iterator issue
struts2+json mapping issue...
iterate doubt
Struts2 mapping query
json+struts2