struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Rollins <mark.roll...@computer.org>
Subject Simple Question?
Date Tue, 16 Dec 2008 16:58:59 GMT

I know this should be obvious. Perhaps I'm just too thick to use Struts2!

I have an action class with a private String editAction and corresponding
public getter/setter. I know the value for this String is "I".

In the view I need to test the value of this field using <s:if test="...">,
to see if it is "I"

I've tried just about everything I can for the test expression, including
editAction=='I', %{editAction=='I'}, #editAction=='I', %{#editAction=='I'},
%{getEditAction()=='I'} but nothing works. 

I had thought that properties of an action class were available on the value
stack. Do I need to use a .Equals() method?

Why, why why isn't this simple? Please put me out of my misery!

Many thanks


-- 
View this message in context: http://www.nabble.com/Simple-Question--tp21037097p21037097.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message