c:set tag to set a non-primitive type value

Posted by Bar on Stack Overflow See other posts from Stack Overflow or by Bar
Published on 2010-04-28T07:56:35Z Indexed on 2010/04/28 8:23 UTC
Read the original article Hit count: 184

Filed under:
|

What's a possible way to use Spring Security tag <sec:authentication property="principal.id" /> as the value for the <c:set…> tag?

These statements:

<c:set var="userId" value="<sec:authentication property='principal.id' />"/>
<c:set var="userId" value="<sec:authentication property=\"principal.id\" />"/>

won't work.

© Stack Overflow or respective owner

Related posts about java

Related posts about jstl