Re: Problem with logic:equal tag
One time I had this problem. Double check to make sure that you have the %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % at the top of the page. Chuck At 11:41 AM 4/4/2002 +0900, you wrote: I have some code in a jsp page logic:equal name=pageBean property=picExists value=false/ logic:equal tag returned true /logic:equal logic:notEqual name=pageBean property=picExists value=false/ logic:notEqual tag returned true /logic:notEqual When I access this page, I get the following logic:equal tag returned true logic:notEqual tag returned true Am I missing the point about the logic:equal and logic:notEqual tags, or is there a reason this might be happening? How can I make it print out only if value=false ? Regards Antony _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with logic:equal tag
Make sure you have included the logic taglib in your page %@ taglib uri="WEB-INF/struts-logic.tld" prefix="logic" % If you dont have this, the logic tags are just ignored and you will get the output you described. HTH, JC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 8:41 PM To: [EMAIL PROTECTED] Subject: Problem with logic:equal tag I have some code in a jsp page logic:equal name="pageBean" property="picExists" value="false"/ logic:equal tag returned true /logic:equal logic:notEqual name="pageBean" property="picExists" value="false"/ logic:notEqual tag returned true /logic:notEqual When I access this page, I get the following logic:equal tag returned true logic:notEqual tag returned true Am I missing the point about the "logic:equal" and "logic:notEqual" tags, or is there a reason this might be happening? How can I make it print out only if value="false" ? Regards Antony _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with logic:equal tag
Found it!!! I have a / at the end of logic:equal name=pageBean property=picExists value=false/ I have some code in a jsp page logic:equal name=pageBean property=picExists value=false/ logic:equal tag returned true /logic:equal logic:notEqual name=pageBean property=picExists value=false/ logic:notEqual tag returned true /logic:notEqual _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]