Re: s:if test condition

2010-06-27 Thread lucas owen
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

Re: s:if test condition

2010-06-27 Thread Dale Newfield
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

Re: s:if test condition

2010-06-27 Thread Bill Bohnenberger
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

s:if test condition

2010-06-26 Thread lucas owen
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

Re: s:if test condition

2010-06-26 Thread Bill Bohnenberger
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: