Thanks Mike! It worked for me.
Thanks again. Mike Horwitz wrote: > > Other option is to use the ACEGI security context to retrieve the > authenticated user. See the method getCurrentUser() here: > http://fisheye4.cenqua.com/browse/appfuse/trunk/service/src/main/java/org/appfuse/service/UserSecurityAdvice.java?r=2784 > > Mike. > > On 8/23/07, p7k <[EMAIL PROTECTED]> wrote: >> >> >> >> http://www.nabble.com/Getting-current-user%27s-id-during-tests-tf4190706s2369.html#a11917492 >> >> http://www.nabble.com/Getting-current-user%27s-id-during-tests-tf4190706s2369.html#a11917492 >> >> but, yeah ... getRequest().getRemoteUser() will get the user's name as >> a >> String, from there you could pull that user out of your persistence >> layer. >> >> >> Imran Amajd wrote: >> > >> > Hello! >> > >> > how can i access the current User Object in my Action Class? I need to >> get >> > user.emailAddress. >> > >> > Kindly reply me as soon as possible. Thanks in Advance :) >> > >> > -Imran Amjad. >> > >> -- >> View this message in context: >> http://www.nabble.com/Retrieving-Current-User-Object-in-MyAction-Class-tf4316416s2369.html#a12290645 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Retrieving-Current-User-Object-in-MyAction-Class-tf4316416s2369.html#a12293821 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
