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
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.
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.
>
>
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