I have currently login User object (userId,organisationId,etc.. ) stored in session by using like this.
session.setAttribute("user", LoginUser);
Where my LoginUser is User object with detail information.
In my next jsp page, I want to check the user’s organisationId by calling from Session.
<s:property value="%{#session.user.organisationId}"/>
How can I check the organisationId in property value is 0 or etc., and do things according to various IDs?
How can I check using c:choose?
Thanks.
1 Answer