Hi all,
I'm trying to get the authentication object of the acegi security in the
jsp using
(UserMaster)SecurityContextHolder.getContext().getAuthentication().getPrincipal()
i'm getting this object if this is put in <% %>
but if i'm using the same by
<c:set var="user" value="${SecurityContextHolder.getContext().getAuthentication().getPrincipal()}" />
i'm getting following exception
org.apache.jasper.JasperException: /WEB-INF/pages/Search.jsp(235,6) The function getContext must be used with a prefix when a default namespace is not specified
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
Does anybody experienced this scenario? What i can do to get the user in my jstl variable?