RE: display error messages for errors found in an Action

2001-09-07 Thread Brian Grant - SilverStream
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

Re: display error messages for errors found in an Action

2001-09-04 Thread Ted Husted
"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

Re: display error messages for errors found in an Action

2001-09-04 Thread Brian K. Buckley
> 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

Re: display error messages for errors found in an Action

2001-09-04 Thread Bill Clinton
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

display error messages for errors found in an Action

2001-09-04 Thread Brian K. Buckley
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