Re: How to get Body Request

2014-07-25 Thread Lance Java
I wonder if you could write a custom annotation? Not sure Eg: onActionFromSave(@RequestBody Foo saveMe) { ... } Then you could auto coerce from json via the TypeCoercer. Just a thought, not sure if it's possible. On 25 Jul 2014 15:10, "ICE Ernesto Arteaga Zavala" wrote: > 2014-07-25 8:52 GMT-0

Re: How to get Body Request

2014-07-25 Thread ICE Ernesto Arteaga Zavala
2014-07-25 8:52 GMT-05:00 Thiago H de Paula Figueiredo : > On Fri, 25 Jul 2014 10:33:08 -0300, ICE Ernesto Arteaga Zavala < > arterza...@gmail.com> wrote: > >5. *Request Payload*view source >>* <= This is the pay load (request body)* >> >>{id:0, title:Another Event

Re: How to get Body Request

2014-07-25 Thread Thiago H de Paula Figueiredo
On Fri, 25 Jul 2014 10:33:08 -0300, ICE Ernesto Arteaga Zavala wrote: 5. *Request Payload*view source * <= This is the pay load (request body)* {id:0, title:Another Event, allDay:false} Ok, now it makes sense. :) Yeah, HttpServletRequest.getReader() is the way

Re: How to get Body Request

2014-07-25 Thread ICE Ernesto Arteaga Zavala
2014-07-25 6:53 GMT-05:00 Thiago H de Paula Figueiredo : > On Fri, 25 Jul 2014 00:51:34 -0300, ICE Ernesto Arteaga Zavala < > arterza...@gmail.com> wrote: > > Yep I know that and that's why I started asking for a particular way to >> do something, how to get my data from payload?, all the rest is

Re: How to get Body Request

2014-07-25 Thread Thiago H de Paula Figueiredo
On Fri, 25 Jul 2014 00:51:34 -0300, ICE Ernesto Arteaga Zavala wrote: Yep I know that and that's why I started asking for a particular way to do something, how to get my data from payload?, all the rest is on my own. What do you mean by payload? In web applications, data is usually sent