I haven't used it, but <html:messages> has a "header" and "footer" attribute
where you can specify a resource key.

Niall

----- Original Message ----- 
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 05, 2004 10:37 PM
Subject: Header for errors (no HTML in the .properties file)


I'm using this to display errors:
   <div class="error">
     <ul>
       <html-el:messages id="msg" message="false">
         <li><c:out value="${msg}"/></li>
       </html-el:messages>
     </ul>
   </div>

How do I put the old "Validation ErrorYou must correct the following
error(s) before proceeding:" text at the top if there are indeed errors
to be displayed?  That used to happen magically with <html-el:errors/>
using the errors.header & errors.footer in the
ApplicationResources.properties file.

I started to write <c:if test"${not empty ... But I don't know what to
check for emptiness.

I see that the errors are in request scope under the key
org.apache.struts.action.ERROR but all sorts of variations of this break
my page:
<c:if test"${not empty request['org.apache.struts.action.ERROR']}">

It's late on Friday, I'm probably missing something really simple...

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management

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




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

Reply via email to