2009/4/23 McDowell, Paula <paula.mcdow...@sug.com>: > Is there a way to check the <html:errors/> field in the jsp for not empty? I > only want to display an html group if the errors field is empty. I'm using > Struts 1.1.
I've been using such structure: <logic:messagesPresent name="<%=Globals.ERROR_KEY%>"> <table width="480" id="ErrorsTableId" class="ErrorsTable"> <tr> <td width="100%" align="right"> <a href="JavaScript: void(0)" onclick="JavaScript: return hideErrors();"> <html:image bundle="IMAGES" srcKey="image.close" /></a> </td> </tr> <html:messages id="error" name="<%=Globals.ERROR_KEY%>"> <tr> <td><bean:write name="error" /></td> </tr> </html:messages> </table> </logic:messagesPresent> Regards -- Lukasz http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org