Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 81926 invoked from network); 4 Mar 2010 15:41:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Mar 2010 15:41:55 -0000 Received: (qmail 39310 invoked by uid 500); 4 Mar 2010 15:41:42 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 39274 invoked by uid 500); 4 Mar 2010 15:41:42 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 39266 invoked by uid 99); 4 Mar 2010 15:41:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 15:41:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 15:41:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NnDAm-00044n-Pm for user@struts.apache.org; Thu, 04 Mar 2010 07:41:12 -0800 Message-ID: <27782448.post@talk.nabble.com> Date: Thu, 4 Mar 2010 07:41:12 -0800 (PST) From: Johannes Geppert To: user@struts.apache.org Subject: Re: Struts2 JQuery select box In-Reply-To: <27782386.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jogep@web.de References: <27780125.post@talk.nabble.com> <27781696.post@talk.nabble.com> <27781855.post@talk.nabble.com> <27781967.post@talk.nabble.com> <27782047.post@talk.nabble.com> <27782120.post@talk.nabble.com> <27782386.post@talk.nabble.com> i think comma seperated, but i'am not sure. so your select box runs now?? Best Regards Johannes Geppert nani2ratna wrote: > > Hi Johannes, > I saw that one earlier. > I found the bug. > I have another property in my action class which is service class. > > So i excluded that service class from json. > Now its working fine. > I did this one, > @Actions( { > @Action(value = "/JsonAction", results = { > @Result(name = "success", type = "json", params = > {"excludeProperties", "prodmDatPmService"} ) > }) > }) > > But how to exclude more than one property. > > Thanks and Regards > RS > > > nani2ratna wrote: >> >> HI, >> >> I am trying to get this object >> List prodcatList = new ArrayList(); >> ProdmProdcat is a java bean which got two properties. >> they are String prodcat_code; >> and String prodcat_desc; >> >> Is this object fine. >> >> Thanks and Regards >> RS >> >> >> nani2ratna wrote: >>> >>> 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 >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > ----- --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep -- View this message in context: http://old.nabble.com/Struts2-JQuery-select-box-tp27780125p27782448.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org