Harring Figueiredo wrote:
Hi Folks,
What is the proper syntax for the tag <s:if test=" ..."> (the example on
http://struts.apache.org/2.0.6/docs/if.html does not really tell how to get
a object from the session map and test for values.
I have an object on the session map, and I can acess with
<s:property value="%{#session.member.name}"/>
However, when I test with
<s:if test="%{#session.member.name} == null">
</s:if>
The test passes, when inf fact name is not NULL. I am sure I am now
referencing the variable the correct way.
You almost got it :-) You have a mis-placed curly brace. Try:
<s:if test="%{#session.member.name == null}">
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]