struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Fattahi <>
Subject Json result
Date Sat, 30 Aug 2014 09:05:34 GMT

Conisider this action:

SampleAction{privateList<SampleVO>samples;//With setters and gettersprivateList<AnotherVO>anotherList;//With
setters and gettersprivateStringanString;//With setters and getters@Action(value ="/loadSelect",results
={@Result(name ="success",type ="json")})publicStringloadSomeSamples(){samples =newArrayList<SampleVO>();//Put
some object in samples.returnSUCCESS;}}
This will result to:

Is it possible to configure json result to make below result


~~Alireza Fattahi
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message