I changed the filter FilterDispatcher for
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
and it works perfect.


eduramiba wrote:
> 
> Hi, I have a problem I don't know how to approach.
> 
> For some actions, I use a token and it works perfect.
> 
> But now I would like to use  http://tuckey.org/urlrewrite/ Url Rewrite
> Filter  which needs to include 
> 
> <dispatcher>FORWARD</dispatcher>
> 
> in the struts 2 FilterDispatcher to work. When I do this, the JSPs with
> <s:token /> stop working because of a NullPointerException in
> TokenHelper.setToken()
> 
> If I don't include <dispatcher>FORWARD</dispatcher> , the Url Rewrite
> rules only work if I set them to redirect, not forward (default). Of
> course this redirects to dirty url in the browser so it is not enough.
> 

-- 
View this message in context: 
http://old.nabble.com/Struts-2-token-and-FilterDispatcher-tp27090134p27098763.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to