Hi folks, If I have the following arrangement in the same page: <logic:messagesPresent message="false"> do stuff for errors </logic:messagesPresent> <logic:messagesPresent message="true"> do stuff for messages </logic:messagesPresent>
If an action posts a message using the saveMessages(request, messages) and no errors have been posted (ala saveErrors()) the rendered page includes both the error and message section. It appears that the container, (in this case Tomcat 4.1.27) is reusing the tag in such a fashion that if I have messages, both errors and message will be shown even if I do not have errors. Is it possible that the MessagePresentTag is not cleaning up sufficiently to allows distinction between message="true" and message="false"? To work around this problem I had to make the first one <logic:messagesPresent> with no message=??? this way I get a different instance of the the tag handler created by the container. Anthony