Re: REST and JSON plugins

2008-07-14 Thread Musachy Barroso
It should be easy to plug in a new serializer (only JSONUtil needs to be changed I think). If you have suggestions on how to improve the current serializer, let me know, or even better, a patch ;) musachy On Mon, Jul 14, 2008 at 11:05 AM, Marc Logemann <[EMAIL PROTECTED]> wrote: > +1 for a plugga

Re: REST and JSON plugins

2008-07-14 Thread Marc Logemann
+1 for a pluggable serializer. I dont like the internal json plugin serializer that much and yes, the plugin should be included in the distro because json is that popular these days -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am 14.07.2

Re: REST and JSON plugins

2008-07-14 Thread Musachy Barroso
The original idea behind the JSON plugin was to use an external library to serialize the objects, xstream to be more specific. But xstream json wasn't even usable at that point and json-lib didn't look that good to me. I think Struts 2 should include a json plugin, and yes we could delegate the ser

Re: REST and JSON plugins

2008-07-14 Thread Jeromy Evans
Oleg Mikheev wrote: Hi! Will REST plugin replace JSON plugin in Struts 2.1? To my mind JSON plugin was very REST-like, and I was really hoping that it would evolve into something that REST plugin claims to be. Also, do REST and JSON plugins have anything in common? They're not related except

Re: REST and JSON

2007-12-23 Thread Frans Thamura
> > At the moment the Struts2 framework allows you to plug in various result > types for an action. It wouldn't surprise me if this also evolves to a > result type based on the requested content type as per the REST plugin's > implementation as its a really good idea. i can see REST and JSON wi

Re: REST and JSON

2007-12-21 Thread Jeromy Evans
Frans Thamura wrote: hi there i just want to map my architecture is the JSON Plugins will become part of REST or both are separated. They are separate. The REST plugin already includes a JSON ContentTypeHandler using xstream: http://xstream.codehaus.org/json-tutorial.html Essentially x

Re: REST and JSON

2007-12-21 Thread Frans Thamura
hi there i just want to map my architecture is the JSON Plugins will become part of REST or both are separated. will the JSON become stable version after REST stable ? and will REST become official feature in 2.1 NB: anyone have a binary?

Re: REST and JSON

2007-12-21 Thread Jeromy Evans
Adam Hardy wrote: Jeromy Evans on 20/12/07 22:25, wrote: http://my.company.com/myapp/rest/orders/1 All you're supposed to do is assign a unique URL to each resource, which is exactly you've done. Other important aspects of the approach are: - you're binding the HTTP methods to certain operati

Re: REST and JSON

2007-12-21 Thread Adam Hardy
Jeromy Evans on 20/12/07 22:25, wrote: http://my.company.com/myapp/rest/orders/1 All you're supposed to do is assign a unique URL to each resource, which is exactly you've done. Other important aspects of the approach are: - you're binding the HTTP methods to certain operations (or in the case

Re: REST and JSON

2007-12-20 Thread Jeromy Evans
Adam Hardy wrote: I have a couple of questions on this subject too, if it's OK to join in here: I was trying to find the low-down on 2.1 on the wiki or the jira, so i could get an impression of what and how much is implemented. I couldn't work out exactly what's what: there are 170 open jira

Re: REST and JSON

2007-12-20 Thread Jeromy Evans
Frans Thamura wrote: hi all i am using JSON Plugins and RSS plugin in my S2Project and we know there will be REST in S2 2.1 anyone can give me the glue The JSON plugin can be used as a ContentTypeHandler with the REST plugin. Presumably the RSS plugin can also be used as a ContentTypeHandl

Re: REST and JSON

2007-12-20 Thread Frans Thamura
On 12/20/07, Adam Hardy <[EMAIL PROTECTED]> wrote: > > I have a couple of questions on this subject too, if it's OK to join in > here: i think the REST idea is cool i try to make my project also have REST implementation, and try to make a REST to PDF, the idea to make resume builder, like linke

Re: REST and JSON

2007-12-20 Thread Adam Hardy
I have a couple of questions on this subject too, if it's OK to join in here: I was trying to find the low-down on 2.1 on the wiki or the jira, so i could get an impression of what and how much is implemented. I couldn't work out exactly what's what: there are 170 open jira against 2.1.0 - 2.1.