struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boraldo <bora...@hotbox.ru>
Subject How to make json plugin see SMD methods ?
Date Thu, 02 Apr 2009 09:52:59 GMT

I use Struts 2 with json-plugin 0.33

I have the following in my js:

        dojo.require("dojo.rpc.*");
        var service = new dojo.rpc.JsonService("${url}");
        var defered = service.go();
        defered.addCallback(callback);


go is method in my action that corresponds to ${url} and annotated as
@SMDMethod.

But this leads to js error:

        service.go is not a function


What should I do ?
-- 
View this message in context: http://www.nabble.com/How-to-make-json-plugin-see-SMD-methods---tp22844426p22844426.html
Sent from the Struts - User mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message