On Thu, Jan 26, 2012 at 1:39 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
> On Thu, 26 Jan 2012 08:03:17 -0200, Christian Grobmeier
> <grobme...@gmail.com> wrote:

> I can't imagine how doing this in Tapestry wouldn't be easier than Struts,
> any version:
>
> package a.b.c.pages;
>
> public class JsonResponse {
>
>        JSONObject void onActivate() {
>                JSONObject object = new JSONObject();
>                ...
>                return object;
>
>        }


I do this in Struts (with my own S2 json plugin)


@JSON
class MyAction {

   @JSON
   private Map results = ...;
}

I need to put a note into struts.xml that I want a json response
instead of a normal.
(struts.xml is another dinosaur i don't like on s2, but there is the
convention plug which supports annotations)


>
> }
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br



-- 
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to