Hi, a DynaValidatorForm has not an own reset(). the reset() of DynaActionForm is called but she doesn“t do anything:
public void reset(ActionMapping mapping, HttpServletRequest request) { ; // Default implementation does nothing } but you can set the properties to its default, is this what you want? DynaValidatorForm myForm = (DynaValidatorForm) form; myForm.initialize(actionMapping); the properties haven“t an initial are null e.g. for Integer. but for String the length().method returns 0. hope i understand you right... greetings -----Original Message----- From: Sheldon Hearn [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 6:59 PM To: [EMAIL PROTECTED] Subject: How to reset properties of a DynaValidatorForm 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 clear the values on success. This is necessary when success forwards to the page with the form on it, where you don't want the value that was just provided to appear in the form again, because it's been dealt with. Ciao, Sheldon. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]