You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohan Radhakrishnan <ra...@gmail.com> on 2009/03/02 04:42:46 UTC

Re: Acegi with Struts 2.

Hi,
        I was able to fix the Spring Security/Struts 2 filter issue by
reordering the filter mappings. Now it works.

Thanks,
Mohan
-- 
View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp22259802p22281615.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Acegi with Struts 2.

Posted by Mohan Radhakrishnan <ra...@gmail.com>.
That was an example.

Actually the filter order was rearranged a bit.

Mohan
-- 
View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp22259802p22323437.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Acegi with Struts 2.

Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/3/3 Mohan Radhakrishnan <ra...@gmail.com>:
>    <filter-mapping>
>        <filter-name>struts2</filter-name>
>        <url-pattern>/HelloWorld.jsp</url-pattern>
>    </filter-mapping>

Wrong, has to be

<filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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


Re: Acegi with Struts 2.

Posted by Mohan Radhakrishnan <ra...@gmail.com>.
I had each filter immediately followed by the mapping but then I changed it
to the following.

<filter>
        <filter-name>springSecurityFilterChain</filter-name>
       
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    </filter>

    <filter>
        <filter-name>struts2</filter-name>
       
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>

    <filter-mapping>
      <filter-name>springSecurityFilterChain</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>


    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/HelloWorld.jsp</url-pattern>
    </filter-mapping>


-- 
View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp22259802p22305786.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Acegi with Struts 2.

Posted by Norris Shelton <no...@yahoo.com>.
Please post what you have if it is different than the example.  More examples are better than less.



________________________________
From: Mohan Radhakrishnan <ra...@gmail.com>
To: user@struts.apache.org
Sent: Sunday, March 1, 2009 10:42:46 PM
Subject: Re: Acegi with Struts 2.


Hi,
        I was able to fix the Spring Security/Struts 2 filter issue by
reordering the filter mappings. Now it works.

Thanks,
Mohan
-- 
View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp22259802p22281615.html
Sent from the Struts - User mailing list archive at Nabble.com.


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