struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Salvatore Lionetti <>
Subject @SMD annotation
Date Wed, 19 Sep 2012 19:18:10 GMT

i'm using a beautiful Struts2 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:

@SMD(objectName = "TEST", serviceType = "JSON-RPC", version = "10.0")
public class SimpleJAction {
    public String smd()
        return Action.SUCCESS;
    ... a lot of methods.

    <package name="example" extends="json-default">
        <action name="simpleJAction" class="x.y.SimpleJsonAction"
            <interceptor-ref name="json">
                <param name="enableSMD">true</param>
                <param name="ignoreSMDMethodInterfaces">false</param>
            <result type="json">
                <param name="enableSMD">true</param>
                <param name="contentType">text/html</param>
                <param name="ignoreInterfaces">false</param>

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:


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:
For additional commands, e-mail:

View raw message