I am passing values via json to select box...
Currently I am in cules.jsp...
I have a button 'Click' which takes me to tabtest.jsp which contains the 2 select boxes...
First select has countries list...
On selection of a country,I make an ajax call which goes to culesModelAction class to get all cities in that country which should be populated in 2nd select box...
In culesModelAction, I managed to prepare values
in tabtest.jsp after the Ajax call,
------------------
I added this for json in struts.xml...
<package name="default1" extends="json-default" >
<action name="Cules" class="CulesModelAction" >
<result type="json">
<param name="root">jsonData</param>
</result>
</action>
</package>
I also have the normal one...
<
struts>
<include file="struts-default.xml"/>
<!-- Configuration for the default package. -->
<package name="default" extends="struts-default">
...........................
............................
<action name="cules" class="CulesModelAction">
<result name="success">/jsp/tabtest.jsp</result>
<result name="failure" >/jsp/cules.jsp</result>
</action>
</package>
Now the problem is before I go to tabtest.jsp to select a country,when i click the button 'Click'(as said above) I get a window and I have no clue about this....
----------------------------------------------------------------------
opening rules.action
You have choosen to open rules.action
firefox is allowing you to open or save this file [Browse]
.......
OK Cancel buttons
---------------------------------------------------------------------
instead of being directed to tabtest.jsp as it was before adding that json mapping in struts.xml
I get this one...
-------------------------------------------
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 could be it? If I remove that json mapping,I dont get this .Anything wrong with the mapping?I can't make it a single mapping,can