Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Spring Security and Struts2 Using tiles

Alberto A. Flores

2008-05-13

Replies:

Author LoginPost Reply
Folks,

My understanding is that Spring Security does not secure resources on
*forwards* (I believe tiles2 do forward/chaining). In an application
using Struts2, Spring and Tiles2, these forwards work just fine. Has
anyone had success using these three frameworks together using Spring
Security? I tried it today and It turned out that the security tag
(http://www.springframework/security/tags/):

 <security:authorization property="principal.username"/>

never fetches anything. Furthermore, the code:

 SecurityContextHolder.getContext().getAuthentication()

returns null (in the forwarded jsp page). Has anyone know what to do in
this case? I'm beginning to think I can not use Spring Security at all.

Regards,

--

Alberto A. Flores
http://www.linkedin.com/in/aflores


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
©2008 gg3721.com - Jax Systems, LLC, U.S.A.