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
--- 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
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,
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
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