Actually, in WebWork 2.0 the default behavior has changed. In 1.4 <ww:if text="foo"> checks that getFoo() returns non-null
In 2.0 <ww:if text="foo"> checks that getFoo() returns a value that can be interpreted as true (true, a string "true", 1, etc) Pat -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of boxed Sent: Saturday, January 17, 2004 1:13 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Check for existence in WW2? Weasel wrote: > According to the docs at > http://wiki.opensymphony.com/space/WebWork+Expression+Language+Syntax > you can check a getFoo() for existence by doing <webwork:if test”foo”> > in a JSP. > > That doesn’t seem to work for me in WW2, neither if or else gets > executed… Any ideas? > > Regards Peter > it's <webwork:if test=”foo”> Next time please describe HOW it does not work, like in this case the JSP does not compile so you should be getting a nice helpful error message. Anders Hovmöller ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork