Ignore this message. I found the problem and I'm ashamed (missing logic taglib declaration). -a
-----Original Message----- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 10:44 To: Struts Users Mailing List Subject: problem with messagesPresent? I'm using <logic:messagesPresent> to test for messages when displaying errors (standard stuff described in the docs). <logic:messagesPresent> <p class="error">There are form errors</p> <ul> <html:messages id="msg"> <li class="error"><bean:write name="msg"/></li> </html:messages> </ul> </logic:messagesPresent> However, I am seeing 'There are form errors' on my page even when there are no ActionMessages or ActionErrors (like when the page is first loaded). I test for that on my JSP using some scriplet code that is outputting 'no messages'/'no errors': Object msgobj = request.getAttribute(org.apache.struts.Globals.MESSAGE_KEY); if(msgobj == null) { response.getWriter().println("no messages<br>"); } Object errobj = request.getAttribute(org.apache.struts.Globals.ERROR_KEY); if(errobj == null) { response.getWriter().println("no errors<br>"); } Any ideas what's going on here? thx andy -- 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]>