Re: [appfuse-user] How to get user from session

2008-07-07 Thread jesperForum
alibehzadian wrote: > > If you want to get current logged in user, use the code snippet below: > User currentUser = null; > SecurityContext ctx = SecurityContextHolder.getContext(); > if (ctx.getAuthentication() != null) { > Authentication auth = ctx.getAuthe

Re: [appfuse-user] How to get user from session

2008-07-02 Thread alibehzadian
If you want to get current logged in user, use the code snippet below: User currentUser = null; SecurityContext ctx = SecurityContextHolder.getContext(); if (ctx.getAuthentication() != null) { Authentication auth = ctx.getAuthentication(); if (auth.

Re: [appfuse-user] How to get user from session

2008-07-02 Thread Allan Ang
use String username = this.getRequest().getRemoteUser(); in your action class. allan krishgy wrote: > > Hi All, > > I am just beginning the java for a web based application. After some > struggle, I found appfuse and moven. > > I have basic appfuse-struts-spring-hibernate project. > >

[appfuse-user] How to get user from session

2008-07-01 Thread krishgy
Hi All, I am just beginning the java for a web based application. After some struggle, I found appfuse and moven. I have basic appfuse-struts-spring-hibernate project. I wanted to get the user loggined in my action classes and JSP pages. How to do this? Regards, Krish -- View this message i