struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: @SMDMethod and servlet context
Date Mon, 26 Nov 2007 17:12:27 GMT
it is a regular action, so you can use interceptors as usual.

musachy

On Nov 26, 2007 10:50 AM, Daab, Andreas <Andreas.Daab@ikk-isc.de> wrote:
> 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:newton.dave@yahoo.com]
> 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" <Andreas.Daab@ikk-isc.de> 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:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message