Hi list, I am trying to use an object from scriplet to <s:if> tag for a conditional display purpose. Here is the code:
In jsp I am fetching user record from the session <% UserDTO userDTO = (UserDTO)session.getAttribute("user"); %> Now I like to show Logout label only if userDTO is avail <s:if test="%{#userDto != null}">Logout</s:if> It doesn't seem to be working out properly. Can anybody please point the mistake I am doing. Thanks in advance! -- Ashish