Specify the jason interceptor stack including default struts interceptor
stack
<interceptor-stack name="jsonStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="json">
true
</interceptor-ref>
</interceptor-stack>
and refer this in ur action def
<action name="YourAction" method="YourMethod"
class="ActionClass">
<interceptor-ref name="jsonStack">
true
</interceptor-ref>
<result type="json">
true
</result>
</action>
Hope this helps.
@@@@@@@@@@@@@@@@@@@
RajibJana wrote:
>
> Hi,
>
> I am building a web application using Dojo 1.2.2 and struts 2.0.14 with
> spring plugin.
>
> The application is using Dojo JSONservice to call the remote action
> methods using JSONPLUGIN.
>
> The problem is that while all the interceptors ( defined in default stack)
> are called during creation of proxy object (by json rpc), no interceptors
> are called when the SMD method is called, it bypasses the interceptor
> stack. In fact, by calling SMD method, a new action instance is created,
> but none of the interceptors are called.
>
> I want the session map set by the SessionAware interceptor to get some
> information like user details etc.
>
> My question :
>
> 1) How can I force struts2/spring to consider interceptor stack while
> creating an action instance when SMD method is called?
>
> 2) Can I get the list of interceptors for a action class inside an action
> method ( SMD method)? Then I can call programmatically all the configured
> interceptors inside the SMD method.
>
> Your help is urgently needed.
>
> Regards
>
> Rajib
> Product Architect
>
--
View this message in context:
http://www.nabble.com/Struts-2-dojo-jsonrpc-SMD-problem-tp21286882p25407049.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]