Great question, I solved this by checking if Globals.ERROR_KEY was null or not, but I still wanted something more, because I set aside a small margin in the top of my page for global errors, like System errors... and I only wanted to display the margin IF there were some ActionMessages.GLOBAL_MESSAGE messages in the ActionMessages object, but I didn't find a quick way to check this.

However if you just want to check for any errors at all, this should do the trick:
<logic:notEmpty name="<%= Globals.ERROR_KEY %>">
</logic:notEmpty>


Barnett, Brian W. wrote:

How can I check if the html:errors tag will display anything down inside my
jsp page? I have the html:errors tag inside a table tag and I don't want the
table generated at all if there aren't any errors to display.



Thanks,

Brian Barnett





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to