Chris,

At first, make sure you are not redirecting. Error messages are request
based, and redirection equals two requests and thus the messages are not
persisted.

-----Original Message-----
From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED]

Sent: Wednesday, April 20, 2005 11:52 AM
To: 'Struts Users Mailing List'
Subject: Validation's disappearing messages


Afternoon all

Under Struts 1.1 (previously I have been using 1.0), I have validation on a
form (it extends ValidatorActionForm) but after validation has failed and I
have (within the validate method) logged the number of errors, I can not for
the life of me get them to show within the JSP.  I have followed the
examples in both the Struts Cookbook and the Struts site, but still to no
avail. I raise errors on this form using both the Validation.xml and
manually, and I ensure that I return the errors object.

I have also taken a dump of both the Request and Session for the user, and I
find nothing that has a class of ActionErrors or ActionMessages.

Has anyone had this problem and can help?  I assume I doing something really
silly that is ballsing this up.

Cheers

Christopher Marsh-Bourdon
 ------


----------------------------------------------------------------------------
----
The information contained herein is confidential and is intended solely for
the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient,
please
contact the sender either via the company switchboard on +44 (0)20 7623
8000, or
via e-mail return. If you have received this e-mail in error or wish to read
our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167
----------------------------------------------------------------------------
----


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





------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
------------------------------------------------------------------------------

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

Reply via email to