Chris Cheshire wrote:
> 
> How do I get a reference to the ActionResolver instance for a stripes
> web-app?
> 
The StripesFilter's configuration is tied to ThreadLocal, so you can do what
the other poster recommended and just call
StripesFilter.getConfiguration().getActionResolver().  The
getConfiguration() method will ensure you're playing with the right thread
and instance.



Chris Cheshire wrote:
> I have some AJAX actions that I want to send a URL to another action
> back in the (JSON) response -  for instance, if a session has expired I
> want to send the URL to the login action back in the response and then the
> javascript processing the JSON response can just set
> window.location to this value to force a new login.
You know, you could do something like this really easily with an
interceptor, then you could duplicate the same behavior everywhere instead
of on an action-by-action basis.

-- 
View this message in context: 
http://www.nabble.com/accessing-the-ActionResolver-instance-tp16486869p16503472.html
Sent from the stripes-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to