Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Frans Thamura
i am succesfully also using DOJO, but never succes using JavaME and Swing may be u can share with us we use swing with http client instead JSONRPC On Sat, Dec 5, 2009 at 1:02 AM, Prasenjit Bhadra wrote: > Hi guys, > > Thanks.This works fine now. I passed the single object instead of an > el

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Prasenjit Bhadra
Hi guys, Thanks.This works fine now. I passed the single object instead of an element of the list. Have to Wrap the params as a List (i.e; "Params": ["obj1","obj2" ,.]) This would help us to extend JSON framework with almost any platform as long as we have a serializing - de-serializing comp

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Frans Thamura
i am glad if we can have a .war with JSON, like show case make it independent example, we can extend with another tech, such as swing, jquery, or may be php F

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Musachy Barroso
see my previous reply. On Thu, Dec 3, 2009 at 4:10 PM, Prasenjit Bhadra wrote: > I have developed a native client interface which calls struts2 JSON RPC > using post method. I have set content type, content length as suggested in > the spec. The request body looks like as follows :

Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Prasenjit Bhadra
> I have developed a native client interface which calls struts2 JSON RPC > using post method. I have set content type, content length as suggested in > the spec. The request body looks like as follows : {"method": > "uploadTxpAssignment","id": "txpU

Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Prasenjit Bhadra
I have developed a native client interface which calls struts2 JSON RPC using post method. I have set content type, content length as suggested in the spec. The request body looks like as follows : {"method": "uploadTxpAssignment","id": "txpUploadReque

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
k, sorry. The problem is that JSON RPC expects "params" > to be a list, and it is coming as a map, I haven't kept up with the > "spec", is it a map these days? > > musachy > > On Thu, Dec 3, 2009 at 4:28 PM, Musachy Barroso wrote: >> It seems lik

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
I take it back, sorry. The problem is that JSON RPC expects "params" to be a list, and it is coming as a map, I haven't kept up with the "spec", is it a map these days? musachy On Thu, Dec 3, 2009 at 4:28 PM, Musachy Barroso wrote: > It seems like one of the fields o

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
3, 2009 at 4:05 PM, Jeet08 wrote: > > I have developed a native client interface which calls struts2 JSON RPC using > post method. I have set content type, content length as suggested in the > spec. The request body looks like as follows : > {"method": "uploadTxpAssig

Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Jeet08
I have developed a native client interface which calls struts2 JSON RPC using post method. I have set content type, content length as suggested in the spec. The request body looks like as follows : {"method": "uploadTxpAssignment","id": "txpUploadReque

Re: JSON and RPC without JSON-RPC

2008-09-04 Thread Musachy Barroso
That would be closer to RPC, but would be less "strutish", I think you could easily extend the JSON plugin to accomplish this. musachy On Thu, Sep 4, 2008 at 3:57 PM, Tom McLaughlin <[EMAIL PROTECTED]>wrote: > Hi All, > > I've got a javascript front-end that makes asynchronous requests to perfor

JSON and RPC without JSON-RPC

2008-09-04 Thread Tom McLaughlin
Hi All, I've got a javascript front-end that makes asynchronous requests to perform various CRUD operations. Ideally, I'd like to write an Action and expose it directly to my client using JSONUtils to serialize and deserialize my objects. The JSON plugin gets me close, but I don't like having to

S2 with JSON RPC

2008-03-31 Thread Frans Thamura
hi there anyone have an example that work based on JSON RPC i am looking a response mechanism that run well here for POJO to JSON, i did it, using json plugins. F

Re: JSON RPC

2007-10-22 Thread Martin Gainty
See you wednesday nite at fenway http://boston.redsox.mlb.com/index.jsp?c_id=bos Martin-- - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, October 19, 2007 7:45 AM Subject: Re: JSON RPC > I'v

Re: JSON RPC

2007-10-19 Thread Jeromy Evans
Hi Frans, The version of dojo included with struts supports the Simple Method Description (SMD) representation of JSON RPC. The struts json plugin includes SMD support so dojo can RPC a method in a a struts 2 action. It works quite well. See the references below. However, it sounds like

Re: JSON RPC

2007-10-19 Thread Ted Husted
I've been doing some work with Struts and JSON, but I don't know anything about using JSON RPC with Swing. For Struts, you don't really need to use full-blown JSON RPC. You can use an ordinary XHR submit, and then use the JSON plugin for the result. The tricky part is handling exce