Suggestion: way to execute code after form.validate(mapping, request) fails, but before forward to input

2003-11-11 Thread Mike Kienenberger
I'm using Struts 1.1. I want to execute code only if validation fails, but before the forward to the input action. Unfortunately, it seems that RequestProcessor.processValidate() has tightly-coupled these two activities, leaving no way for such activity to be triggered. At first, I thought I

Re: Suggestion: way to execute code after form.validate(mapping, request) fails, but before forward to input

2003-11-11 Thread David Graham
--- Mike Kienenberger [EMAIL PROTECTED] wrote: I'm using Struts 1.1. I want to execute code only if validation fails, but before the forward to the input action. Unfortunately, it seems that RequestProcessor.processValidate() has tightly-coupled these two activities, leaving no way for

RE: Suggestion: way to execute code after form.validate(mapping, request) fails, but before forward to input

2003-11-11 Thread Kakunje, Chidananda (B.)
ActionErrors is a collection. So once the processValidate() is called, you can check any errors present in the collection and take action accordingly, before forwarding in your Action class. --Chida -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Suggestion: way to execute code after form.validate(mapping, request) fails, but before forward to input

2003-11-11 Thread Carlos Fernandez
you can go thru the list of errors by name, by iterating on ActionErrors.properties property. -Carlos. -Original Message- From: Kakunje, Chidananda (B.) [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:13 PM To: 'Struts Developers List' Subject: RE: Suggestion: way to execute

Re: Suggestion: way to execute code after form.validate(mapping, request) fails, but before forward to input

2003-11-11 Thread Mike Kienenberger
Gupta, Sahil [EMAIL PROTECTED] wrote: I think that Mike is talking about the case where he uses the validation fwk. There is no way, what he is asking for can be done with the current implementation(but for implementing the processValidate in your own RP) of the RP but i think that this