Here's what I use: <authz:authentication operation="fullName"/>
Matt On 8/31/06, Charles Harvey III <[EMAIL PROTECTED]> wrote: > Hello. > I'm quite new to Acegi but I think I am getting the hang of it fairly > quickly. > There is one thing though that I am struggling with. > > How do I get things like "username" to be displayed on a web page? > > I thought the UserDetails was stored in the Session. But it is really > stored > in an Authentication object, which is stored in a SecurityContext, which is > stored in a SecurityContextHolder. Which is all fine. But, how do I access > the SecurityContextHolder from the page level after a successful login? > > Is it available as a Session variable? If so, what is the name of the > Session > attribute? If not, how do I access the SecurityContextHolder from say, a > Velocity page? I'm sure this is done quite regularly so I am hoping someone > can point me in the right direction. > > Thanks for the help. > > > Charlie > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Home: http://acegisecurity.org > Acegisecurity-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
