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 <salvatorelione...@gmail.com>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 > <package name="example" extends="json-default"> > <action name="simpleJAction" class="x.y.SimpleJsonAction" > method="smd"> > <interceptor-ref name="json"> > <param name="enableSMD">true</param> > <param name="ignoreSMDMethodInterfaces">false</param> > </interceptor-ref> > <result type="json"> > <param name="enableSMD">true</param> > <param name="contentType">text/html</param> > <param name="ignoreInterfaces">false</param> > </result> > </action> > ... > </package> > > 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-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >