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 184BADBDB for ; Thu, 20 Sep 2012 08:49:14 +0000 (UTC) Received: (qmail 4082 invoked by uid 500); 20 Sep 2012 08:49:12 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 3822 invoked by uid 500); 20 Sep 2012 08:49:11 -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 3777 invoked by uid 99); 20 Sep 2012 08:49:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 08:49:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of maurizio.cucchiara@gmail.com designates 209.85.213.176 as permitted sender) Received: from [209.85.213.176] (HELO mail-yx0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 08:49:05 +0000 Received: by yenr9 with SMTP id r9so626959yen.35 for ; Thu, 20 Sep 2012 01:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=PABrC/MLO2W+cnifiWhs5DpGGlE+XyDxCPGbTohBcuk=; b=Nnl7SODEANoeI6VD75ilqEpnyF6YZ3f3oqzShVGZq/8HcwjD429oiSXgKS/14gN4Vl fDzRcPWq0wN28tlQEJwv2fXD3B3cmMRcpbOsECCTxW6PAypAc4rbvxWsU+52d0VfZvzP Xivy1nzE5MIZkmD8mLeWVeBXjw8pyvfI5yujw/i7uwE7a08hGJtjpX/bSqIydvVG9V3B Fjm9M6QUM9oYYIc01q1uVylXp8XDvJ21e+txF7MJMTrxxNHXb7kXP9DC2qBMPpioM3fu cJ+kUhf2LeKeMLuQfu9Js7O+lHcyPREdPk/w0OW4TE2WsANH7UnLqrj5eK0mgoAdjMSa vaxA== Received: by 10.236.76.42 with SMTP id a30mr951871yhe.50.1348130924647; Thu, 20 Sep 2012 01:48:44 -0700 (PDT) MIME-Version: 1.0 Sender: maurizio.cucchiara@gmail.com Received: by 10.101.151.13 with HTTP; Thu, 20 Sep 2012 01:48:24 -0700 (PDT) In-Reply-To: References: From: Maurizio Cucchiara Date: Thu, 20 Sep 2012 10:48:24 +0200 X-Google-Sender-Auth: mCK0xvacqRx7C5YVqgfYRbOAd44 Message-ID: Subject: Re: @SMD annotation To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=20cf303b433bdfd5d904ca1e3057 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303b433bdfd5d904ca1e3057 Content-Type: text/plain; charset=ISO-8859-1 Hi Salvatore, I would like to help you, but unfortunately I didn't get you. Could you provide a deeper explanation of your issues, please? What is the expected output? Could you also provide a runnable example (maybe through a pastebin)? Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 19 September 2012 21:18, Salvatore Lionetti wrote: > Hi, > > i'm using a beautiful Struts2 2.3.1.2 environment. > I'm having trouble with annotation @SMD, basically ignored, at least > in the initial message: > > methods: [...], "objectName": null, ... "version": .1 (the default) > > This is the commands: > > Java > @SMD(objectName = "TEST", serviceType = "JSON-RPC", version = "10.0") > public class SimpleJAction { > public String smd() > { > return Action.SUCCESS; > } > @SMDMethod > ... a lot of methods. > } > > Struts.xml > > method="smd"> > > true > false > > > true > text/html > false > > > ... > > > Basically all works great, except @SMD annotation is totally ignored > (compile support seem works great!) > > In the first method called in class SimpleJsonAction, the second > message exchanged after the 'methods' one, i dump: > > log.error(this.getClass().getAnnotation(SMD.class).toString()); > > And obtain an almost correct (serviceType is no more 'JSON-RPC', anyway) > > @org.apache.struts2.json.annotations.SMD(serviceType=service, > version=10.0,...) > > Could you please help me in finding the mistake? > > Thanks for your attention > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --20cf303b433bdfd5d904ca1e3057--