No, I'm using the json interceptor. Don't know if it's possible to use the default stack and SMD.
<action name="ShowSearchResult" class="ShowSearchResult" method="execute"> <interceptor-ref name="json"> <param name="enableSMD">true</param> </interceptor-ref> <result type="json"> <param name="enableSMD">true</param> </result> </action> Andreas Daab -----Ursprüngliche Nachricht----- Von: Dave Newton [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. November 2007 16:45 An: Struts Users Mailing List Betreff: Re: @SMDMethod and servlet context Are you running the action through the regular interceptor stack? --- "Daab, Andreas" <[EMAIL PROTECTED]> wrote: > > Hi, > > in my application there is an action class named ShowSearchResult, > which is derived from BaseActionSupport. BaseActionSupport implements > ServletContextAware. The app stores some object in the servlet > context, e.g. an object for the database connection. Other classes > derived from BaseActionSupport have no problem to access the servlet > context. > In ShowSearchResult there is a method named getRows. > I import the > jsonplugin and annotate getRows with the SMDMethod tag. The execution > of getRows via javascript works just fine, but I have no access to the > servlet context in this method. Is there any way to get access to the > servlet context? > > Andreas Daab > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]