HI, Thank you. I executed the action. It gave me the following exception
java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public" sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) java.lang.reflect.Method.invoke(Method.java:588) org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:227) org.apache.struts2.json.JSONWriter.process(JSONWriter.java:165) org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131) Thanks and Regards RS Johannes Geppert wrote: > > you can just execute your action like a normal action. > > http://localhost:8080/app/json.action > > The result should be a normal textfile which you can open > with notepad or whatever you want. > > Also you can use Firebug "Network/XHR" to see your action response > > Best Regards > > Johannes Geppert > > > nani2ratna wrote: >> >> Hi Johanes, >> >> Thanks for reply. >> Actually I am very new to JSON. >> Action is working fine. >> >> I went through your code and redid the same type stuff in my app. >> I don't know about JSON reponse. >> Since in your action class there no result(jsp) mapped. >> So I too did the same. I am just executing the action method. And I don't >> know how to send response. >> >> Can you please explain or send me some links. >> So i can read and do that. >> >> Thanks in advance >> RS >> >> >> >> Johannes Geppert wrote: >>> >>> Hello, >>> >>> did your JSON Actions works fine? >>> >>> Check if you really get an JSON response and the >>> variables inside the result have the same name. >>> >>> Can you please POST your result with sample data? >>> >>> Best Regards >>> >>> Johannes Geppert >>> >>> >>> nani2ratna wrote: >>>> >>>> Hi, >>>> >>>> I am trying to use http://code.google.com/p/struts2-jquery/ for loading >>>> select box. >>>> I just followed this link >>>> http://www.weinfreund.de/struts2-jquery-showcase/index.action#. >>>> >>>> Every thing is executing fine. >>>> But the list not loading properly. >>>> I am new to JSON. >>>> >>>> I changed below jsp page which was working fine with normal select box. >>>> >>>> my code is >>>> >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/Struts2-JQuery-select-box-tp27780125p27782047.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org