Hello all,
I'm using Struts2 with the rest-plugin to build a RESTful web services.
Serializing from Java objects to JSON was a breeze - everything mapped
correctly and beautifully. Receiving JSON and attempting to map it to Java
objects is a whole different issue.
I ran into 2 problems:
1) Could
ut in JsonLibHandler..
Shaun
On Thu, Oct 11, 2012 at 12:48 PM, Chris Pratt wrote:
> I was more looking for the output of all the System.out.println's
> (*Chris*)
> On Oct 11, 2012 12:40 PM, "Shaun Lim" wrote:
>
> > By the way, mapping to a simple String[] works, bu
By the way, mapping to a simple String[] works, but I'm finding it hard to
believe that the plugin does not know how to handle conversions to List..
On Thu, Oct 11, 2012 at 11:54 AM, Shaun Lim wrote:
> Method public java.lan
:
> What's the output of the run with this class & JSON?
> (*Chris*)
>
> On Thu, Oct 11, 2012 at 10:52 AM, Shaun Lim
> wrote:
>
> > Hi Chris,
> >
> > I did start off with a List implementation but started changing
> > stuff around in futile attempt
c String getDescription() {
> return description;
> }
>
> public void setDescription(String description) {
> this.description = description;
> }
>
> public List getCountries() {
> return countries;
> }
>
>
My entity class:
import java.util.ArrayList;
public class Test {
private String name;
private String description;
private ArrayList countries;
public Test() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.na
6 matches
Mail list logo