request is not an implicit object for El that's why it is happening. you can access the actual jsp implicit object reference "request" using pageContext.request
and userPrinciple is a property of request here
avi sinha
avi sinha wrote: request is not an implicit object for El that's why it is happening. you can access the actual jsp implicit object reference "request" using pageContext.request
and userPrinciple is a property of request here
avi sinha
Thank you. I continually get confused with the different methods.
<c:out value="${requestScope.userPrincipal}"/>
whenever we use attributes from request or session, EL uses requestScope or sessionScope to map the same. The above EL expression should work
anand chouti wrote: <c:out value="${requestScope.userPrincipal}"/>
whenever we use attributes from request or session, EL uses requestScope or sessionScope to map the same. The above EL expression should work
Actually, it doesn't work. I tried it before you posted. I was going to ask why but thought I'd plough through the docs instead. Now we're on the topic, anyone know why?
anand chouti wrote: <c:out value="${requestScope.userPrincipal}"/>
whenever we use attributes from request or session, EL uses requestScope or sessionScope to map the same. The above EL expression should work
Nonsense. Request scope and the request instance are not the same thing.