OMG!
that was it!!!
I would never have figured out by myself,
THANKS BILL!!!
2010/6/26 Bill Bohnenberger bill98...@gmail.com
Since 'activated' is a String, try swapping your single double quotes,
e.g.
s:if test='%{warning.activated==Y}'
-Bill
On Sat, Jun 26, 2010 at 11:28 AM, lucas
lucas owen wrote:
Bill Bohnenbergerbill98...@gmail.com
Since 'activated' is a String, try swapping your single double quotes,
e.g. s:if test='%{warning.activated==Y}'
that was it!!!
The key is understanding *why* it makes a difference.
The reason is that a single character demarcated by
Yes, that is why I said Since 'activated' is a String,...
On Sun, Jun 27, 2010 at 3:47 PM, Dale Newfield d...@newfield.org wrote:
lucas owen wrote:
Bill Bohnenbergerbill98...@gmail.com
Since 'activated' is a String, try swapping your single double quotes,
e.g. s:if
Hi Struts 2 users:
I was wondering if you can use a s:if test based on a pojo's
attribute value:
POJO:
public class Warning{
String text;
String activated; // Y or N
}
JSP:
s:if test=*%{warning==null}*
-- *Warning* null!
/s:if
s:else
-- *Warning* not null!
-- Activated: s:property
Since 'activated' is a String, try swapping your single double quotes,
e.g.
s:if test='%{warning.activated==Y}'
-Bill
On Sat, Jun 26, 2010 at 11:28 AM, lucas owen sr.ilus...@gmail.com wrote:
Hi Struts 2 users:
I was wondering if you can use a s:if test based on a pojo's
attribute value:
5 matches
Mail list logo