RE: Using json in Struts 2.1.8.1

2010-04-20 Thread Martin Gainty
sh("manageForm_"); > > after entering 3 or more characters it supposed to invoke 'getNames' method > but it is not even starting invocation of this method > > Can anyone please let me know where I'm wrong. > > Thanks in advance. > > Regards, &

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread Dale Newfield
On 4/20/10 2:11 PM, sharath karnati wrote: but facing same problem... Because your problem doesn't appear to be a server-side one, but rather what's going on inside the browser. In struts.properties file having below line *struts.enable.DynamicMethodInvocation = **true* If that's true, th

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread sharath karnati
--- On Tue, 4/20/10, Dale Newfield wrote: From: Dale Newfield Subject: Re: Using json in Struts 2.1.8.1 To: "Struts Users Mailing List" Date: Tuesday, April 20, 2010, 12:28 PM On 4/20/10 11:34 AM, sharath karnati wrote: > > >          > json-default extends struts-d

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread Dale Newfield
On 4/20/10 11:34 AM, sharath karnati wrote: json-default extends struts-default, so no reason do list both (and I don't even know if that works). json-default defines the result type json, so no reason to redefine it again. json I don't know if action names can

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread Frans Thamura
x27;getNames' method > but it is not even starting invocation of this method > > Can anyone please let me know where I'm wrong. > > Thanks in advance. > > Regards, > Sharath. > > > > > > > > > > --- On Fri, 4/16

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread sharath karnati
        --- On Fri, 4/16/10, Dale Newfield wrote: From: Dale Newfield Subject: Re: Using json in Struts 2.1.8.1 To: "Struts Users Mailing List" Date: Friday, April 16, 2010, 10:39 AM > namespace="/namespace_name"> >          >     

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread Dale Newfield
On 4/19/10 2:14 PM, sharath karnati wrote: Can you please send me sample example using AJAX in struts 2.1.8, where action method returns json list to a page. Trying to catch up from being out of town all weekend (and Monday), so I'm just going to throw some results of searching google at you:

Re: Using json in Struts 2.1.8.1

2010-04-19 Thread Frans Thamura
son list to a page. > > Thanks in advance. > > Regards, > Sharath. > > --- On Fri, 4/16/10, Dale Newfield wrote: > > > From: Dale Newfield > Subject: Re: Using json in Struts 2.1.8.1 > To: "Struts Users Mailing List" > Date: Fri

Re: Using json in Struts 2.1.8.1

2010-04-19 Thread sharath karnati
Hi Dale,     Can you please send me sample example using AJAX in struts 2.1.8, where action method returns json list to a page.     Thanks in advance.   Regards, Sharath. --- On Fri, 4/16/10, Dale Newfield wrote: From: Dale Newfield Subject: Re: Using json in Struts 2.1.8.1 To: "Struts

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread Denis Cabasson
n how to use json without using any annotations in action. Can someone please send me some examples for using json in this new version of struts2. Thanks in advance. Regards, Sharath. --- On Thu, 4/15/10, hisameer wrote: From: hisameer Subject: Re: Using json in Struts 2.1.8.

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread Dale Newfield
Or just -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread sharath karnati
wrote: From: hisameer Subject: Re: Using json in Struts 2.1.8.1 To: user@struts.apache.org Date: Thursday, April 15, 2010, 7:22 PM Do something like this: In your struts.xml define result types as follows:                             then in the action mapping:                      

Re: Using json in Struts 2.1.8.1

2010-04-15 Thread hisameer
Do something like this: In your struts.xml define result types as follows: then in the action mapping: and put annotation in the getter method in your action class: @JSON public Ma

Re: Using json in Struts 2.1.8.1

2010-04-15 Thread sharath karnati
Can anyone please let me know, how to use json??   Thanks, Sharath. --- On Wed, 4/14/10, sharath karnati wrote: From: sharath karnati Subject: Using json in Struts 2.1.8.1 To: user@struts.apache.org Cc: karna...@yahoo.com Date: Wednesday, April 14, 2010, 1:22 PM Hi All,      I'm having