Title: RE: display error messages for errors found in an Action
-Original Message-
From: Bill Clinton [mailto:[EMAIL PROTECTED]]
Sent: 4. september 2001 22:27
To: [EMAIL PROTECTED]
Subject: Re: display error messages for errors found in an Action
Hi Brian,
yes, you can do
"Brian K. Buckley" wrote:
> Yes but how do I access that errors object from the perform() method of
> Action? (or if we create a new ActionErrors object, where do we put it
> since perform() returns an ActionForward object, not an ActionErrors
> object).
>
> I wanted to be able to add the errors
> yes, you can do this. If you have a message in your
> ApplicationResources file called my.test.error, you can add an error
> like this:
>
> errors.add("myTestField", new ActionError("my.test.error"));
>
> where the string "myTestField" is the field that caused the error.
> Look at the co
Hi Brian,
yes, you can do this. If you have a message in your
ApplicationResources file called my.test.error, you can add an error
like this:
errors.add("myTestField", new ActionError("my.test.error"));
where the string "myTestField" is the field that caused the error.
Look at the con
Hi, I'm a relative struts newbie, seeking advise.
I have a class MyForm and in the validate() method of MyForm I check for
input errors and add them to the ActionErrors object which gets returned.
Later in my MyAction action, I check for additional business logic type
input errors. If I find e
5 matches
Mail list logo