Re: How to reset properties of a DynaValidatorForm

2004-01-08 Thread Sheldon Hearn
On (2004/01/08 01:00), Matthias Wessendorf wrote: > i dind´t say, that is reset==initialize() I wasn't disagreeing with you. I meant "oh, you're right, reset() isn't what I want, but initialize() is". :-) Thanks, Sheldon. - To

Re: How to reset properties of a DynaValidatorForm

2004-01-07 Thread Sheldon Hearn
On (2004/01/07 19:03), Matthias Wessendorf wrote: > but you can > set the properties to its default, > is this what you want? > > DynaValidatorForm myForm = (DynaValidatorForm) form; > > myForm.initialize(actionMapping); Duh, that's it. reset() != initialize(). initialize() is e

How to reset properties of a DynaValidatorForm

2004-01-07 Thread Sheldon Hearn
Hi folks, How are you supposed to reset properties of a DynaValidatorForm? The source suggests that DynaValidatorForm.reset() doesn't actually reset values to their defaults, and calling the method certainly doesn't do what I expected. I need to be able to do this from inside an action, so I can

Re: Error in JSP when using DynaActionForm / apologies, problem solved

2004-01-07 Thread Sheldon Hearn
On (2003/12/23 13:57), Marco Mistroni wrote: > Sorry that I bothered the list with my spam. > I found the problem..in the struts config I was still associating > The old MyForm bean to the new action created 'AliasMaintenanceAction' I have the same problem, but I can't spot my misconfigurat

Re: NullPointerException from RequestUtils.createActionForm()

2003-12-15 Thread Sheldon Hearn
On (2003/12/15 16:56), Sheldon Hearn wrote: > So it _definitely_ was a stupid mistake on my part. It'd be nice to > know what I was doing wrong, but if your time is short, don't worry > about trying to figure out what I did wrong. *deep.breath* After doing some developme

Re: NullPointerException from RequestUtils.createActionForm()

2003-12-15 Thread Sheldon Hearn
On (2003/12/15 14:34), Sheldon Hearn wrote: > I'm getting a NullPointerException from RequestUtils.createActionForm() > (full stack trace below). I was originally trying to use a > DynaValidatorForm with several properties, but have now reduced the > problem to the simplest p

NullPointerException from RequestUtils.createActionForm()

2003-12-15 Thread Sheldon Hearn
Hi folks, I'm getting a NullPointerException from RequestUtils.createActionForm() (full stack trace below). I was originally trying to use a DynaValidatorForm with several properties, but have now reduced the problem to the simplest possible terms for reporting. Here are the important bits of my

Newbie can't get saveErrors() working

2003-12-13 Thread Sheldon Hearn
Hi folks, I'm in love with the validation framework included with Struts. The fact that I can do validation with regular expressions and have client-side JavaScript created for me automatically is fantastic. However, there's one error that I have to catch on the server-side in some cases: an att