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-20 Thread sharath karnati
, 4/16/10, Dale Newfield d...@newfield.org wrote: From: Dale Newfield d...@newfield.org Subject: Re: Using json in Struts 2.1.8.1 To: Struts Users Mailing List user@struts.apache.org Date: Friday, April 16, 2010, 10:39 AM package name=package_name extends=struts-default namespace

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread Frans Thamura
. --- On Fri, 4/16/10, Dale Newfield d...@newfield.org wrote: From: Dale Newfield d...@newfield.org Subject: Re: Using json in Struts 2.1.8.1 To: Struts Users Mailing List user@struts.apache.org Date: Friday, April 16, 2010, 10:39 AM package name=package_name extends=struts

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: package name=admin extends=struts-default,json-default result-types result-type name=json class=org.apache.struts2.json.JSONResult / /result-types json-default extends struts-default, so no reason do list both (and I don't even know if that

Re: Using json in Struts 2.1.8.1

2010-04-20 Thread sharath karnati
d...@newfield.org wrote: From: Dale Newfield d...@newfield.org Subject: Re: Using json in Struts 2.1.8.1 To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, April 20, 2010, 12:28 PM On 4/20/10 11:34 AM, sharath karnati wrote: package name=admin extends=struts-default,json

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,

RE: Using json in Struts 2.1.8.1

2010-04-20 Thread Martin Gainty
: Tue, 20 Apr 2010 08:34:15 -0700 From: karna...@yahoo.com Subject: Re: Using json in Struts 2.1.8.1 To: user@struts.apache.org CC: d...@newfield.org Hi All, Added below lines in struts.xml file package name=admin extends=struts-default,json-default result-types result

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 d...@newfield.org wrote: From: Dale Newfield d...@newfield.org Subject: Re: Using json

Re: Using json in Struts 2.1.8.1

2010-04-19 Thread Frans Thamura
to a page. Thanks in advance. Regards, Sharath. --- On Fri, 4/16/10, Dale Newfield d...@newfield.org wrote: From: Dale Newfield d...@newfield.org Subject: Re: Using json in Struts 2.1.8.1 To: Struts Users Mailing List user@struts.apache.org Date: Friday, April 16, 2010, 10:39 AM package

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread sharath karnati
: hisameer cool_sameer_fo...@yahoo.com 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: package name=package_name extends=struts-default namespace=/namespace_name

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread Dale Newfield
package name=package_name extends=struts-default namespace=/namespace_name result-types result-type name=json class=com.googlecode.jsonplugin.JSONResult / /result-types Or just package name=package-name extends=json-default -Dale

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread Denis Cabasson
, Sharath. --- On Thu, 4/15/10, hisameercool_sameer_fo...@yahoo.com wrote: From: hisameercool_sameer_fo...@yahoo.com 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

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 karna...@yahoo.com wrote: From: sharath karnati karna...@yahoo.com Subject: Using json in Struts 2.1.8.1 To: user@struts.apache.org Cc: karna...@yahoo.com Date: Wednesday, April 14, 2010, 1

Re: Using json in Struts 2.1.8.1

2010-04-15 Thread hisameer
://old.nabble.com/Using-json-in-Struts-2.1.8.1-tp28245651p28261689.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

Using json in Struts 2.1.8.1

2010-04-14 Thread sharath karnati
Hi All,      I'm having following Action   -  Action(Begin) - public class AutocompleteField extends ActionSupport {     private String city;     private MapString,String json;     public String execute() throws Exception() {     return SUCCESS;     }