posted 17 years ago
hey,
should you really want this behaviour (i doubt the users will be thankful), you can parse the detected error messages in the action (before saving them into the request) then delete all but one.
if you are using / mixing with declarative validation, you will need to deactivate it in struts-config and call in manually from your action, otherwise the action.execute() method will not be called if declarative validation returns errors.
(
in the form: implement validate() with super.validate()
in the action: call form.validate()
)
i'm using these technique in my project (without the deletion, of course) and it works perfectly.
hope it helps,
jan
[ January 11, 2007: Message edited by: Jan Groth ]