I'm doing this right now, but not using the errors collection.  I have a
request parameter that knows whether or not an object was added.  My code
is:

<logic:equal parameter="added" value="true">
        <b><i>
        Entry Added<br>Add Another?
        </i></b>
        <br>
        <html:link page="/EditPage.jsp">Return</html:link>
</logic:equal>

<!-- Some form stuff to add the entry -->

<logic:notEqual value="true" parameter="added">
        <html:link page="/EditPage.jsp">Return</html:link>
        <br><br>
</logic:notEqual>

The parameter added knows whether or not an entry was just added, and prints
out an appropriate message if it was.
Is this the kind of thing you're looking for?

~ Keith
http://www.buffalo.edu/~kkamholz


-----Original Message-----
From: Flemming Seerup [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:20 AM
To: Struts Users Mailing List
Subject: messages collection?


Is there any way to duplicate the "errors" collection, so it's possible to
display informational messages such as "Element xx created" ?

Regards,
Flemming



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

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

Reply via email to