Hi,
I don't think I fully understand OGNL and I need some help with an
expression...
I have a param that I am passing to an action. the parameter is called
selectedType, and it has a getter and setter on the action. It is
getting set correctly. When I try to evaluate the expression using the
<s:if> tag, it never evaluates correctly. The action parameter is as
follows;
./component/new.action?selectedType=C
I've tried the following expressions
<s:if test="%{selectedType == 'C'}">
... Do work
</s:if>
<s:if test="%{#selectedType == 'C'}">
... Do work
</s:if>
<s:if test="${selectedType == 'C'}">
... Do work
</s:if>
None of which seem to work. Can someone clear this up?
Thanks in advance,
MG
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]