Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 19DCD100EA for ; Wed, 26 Feb 2014 13:00:55 +0000 (UTC) Received: (qmail 81474 invoked by uid 500); 26 Feb 2014 13:00:53 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 81209 invoked by uid 500); 26 Feb 2014 13:00:51 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 81201 invoked by uid 99); 26 Feb 2014 13:00:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 13:00:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of felipe.lorenz@idealogic.com.br designates 201.76.49.168 as permitted sender) Received: from [201.76.49.168] (HELO hm1480-37.locaweb.com.br) (201.76.49.168) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 13:00:45 +0000 Received: from mcbain0002.correio.pw (189.126.112.13) by hm1480-23.locaweb.com.br (PowerMTA(TM) v3.5r15) id h1ninq0nva4u for ; Wed, 26 Feb 2014 10:00:23 -0300 (envelope-from ) Received: from moe0182.email.locaweb.com.br (moe0182.email.locaweb.com.br [10.30.172.204]) by mcbain0002.correio.pw (Postfix) with ESMTP id B219380A18C for ; Wed, 26 Feb 2014 10:00:22 -0300 (BRT) Received: from mail.idealogic.com.br (localhost [127.0.0.1]) by moe0182.email.locaweb.com.br (Postfix) with ESMTP id 3C0AEE6D4 for ; Wed, 26 Feb 2014 10:00:23 -0300 (BRT) Received: from [170.54.58.4] via [200.234.210.33] by mail.idealogic.com.br with HTTP (HTTP/1.1 POST); Wed, 26 Feb 2014 10:00:23 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 26 Feb 2014 10:00:23 -0300 From: Felipe Lorenz To: Struts Users Mailing List Subject: Re: Rest + JSON Organization: Idealogic Software In-Reply-To: References: Message-ID: <615f9ab1a21cc08c6adce8df9e0ae0bc@idealogic.com.br> X-Sender: felipe.lorenz@idealogic.com.br User-Agent: Webmail Locaweb x-locaweb-id: P_ZcqVj-LXTc16aW_0wHa_JUvbyegwxWxxOvni2iJSEFOsUYVLc6Y7iR0b05mqPnLCh8_DHSXGd3TbX5fgf8SeuLUjGHxgGpknudPgSgIWIA32z50HQmb9ZTIzjDrYUsJFWC_V5W_c4mEs8F-7HZ6FU4mHMq3PHFWCh4QpzOMzkkEunv1DxZzjHJrlAtOdp5 x-locaweb-id2: NjY2NTZjNjk3MDY1MmU2YzZmNzI2NTZlN2E0MDY5NjQ2NTYxNmM2ZjY3Njk2MzJlNjM2ZjZkMmU2Mjcy X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=XLu+SGRE c=1 sm=1 tr=0 a=jG4bR+lYzyeOpCsfTn4tpQ==:117 a=F/oiOywqgT4jshWlTLWa/Q==:17 a=VM7MXBOAAAAA:8 a=e8Y9lM5i6fIA:10 a=IkcTkHD0fZMA:10 a=9240Uo5MAAAA:8 a=AXBMWx0KCwwA:10 a=mV9VRH-2AAAA:8 a=m_kJa9cz2qqw7A4x8lgA:9 a=QEXdDO2ut3YA:10 a=_PuAf5hdI4AA:10 X-Virus-Checked: Checked by ClamAV on apache.org Thanks Lukasz, I think I´ll create a CustomContentTypeHandler. Em 26/02/2014 04:21, Lukasz Lenart escreveu: > 2014-02-25 19:08 GMT+01:00 Felipe Lorenz > : >> Hi, >> >> I was not clear with my doubt. I dont´t want to use json-plugin, >> since >> rest-plugin already has a json solution. >> >> I wanna try to use 100% of rest-plugin json solution and, at same >> time, keep >> the control over the data is returned. > > I think the only option you have is to write your own > ContentTypeHandler [1] and override built-in JSON handler > > [1] > http://struts.apache.org/release/2.3.x/docs/rest-plugin.html#RESTPlugin-CustomContentTypeHandlers > > > Regards --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org