Sorry to report but <s:if test="%{model.testBool.booleanValue()}"/> does nothing, also
<s:text name="%{model.testBool.booleanValue()}"/> renders nothing in the resulting html page; now I know that testBool is 'true' because I am running it through the debugger. I am also runnning this under Java 1.6 so autoboxing should work as noted in one of the previous posts. I am completely lost for any other ideas.. Any help is greatly appreciated, C. chumbobumbo wrote: > > I am using Struts 2.1.6 > > if I have model like this: > > public class model { > private Boolean testBool; > private boolean testbool; > > ... > public getters and setters for both follow > ... > } > > I find that in my corresponding jsp page (assumming that both testbool and > testBool are initialised to true and that private member 'model' is > available through its getter and a setter from within the action class) > > <s:if test="%{model.testbool}"/> evaluates to true, while > <s:if test="%{model.testBool}"/> does not > > I am highly suspicious that I may be doing something fundamentally wrong > as there is a complete absence of posts out there complaining about not > being able to evaluate Boolean. > > Is there something I am missing here? > > Any help is appreciated, > > Regards, > > C > > > -- View this message in context: http://www.nabble.com/Newbie-%28possibly-RTFM%29-issue-tp24032216p24042314.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org