Thanks, for your response.

So is "Globals" a session bean with constant variable ERROR_KEY?

Thanks,
Paula

-----Original Message-----
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: Thursday, April 23, 2009 12:51 PM
To: Struts Users Mailing List
Subject: Re: HTML:errors

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


Private and confidential as detailed here: 
http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access the 
link, please e-mail sender.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to