A third option is to take out the Workflow Interceptor out of the stack and only leave the validate interceptor in there.
Validate interceptor will do the validation through both the action-validation.xml file and calling the action's action method. The Workflow Interceptor will check if there are any errors through action.hasErrors(), and if so, automatically return INPUT as the result without running the action's execute() method. So you can simply take out the workflow interceptor and do your preprocessing inside your execute() method. But you should also just check if there are any errors yourself and return a result before doing any other processing that requires the data to be valid. I think that the Prepare Interceptor is a bad idea because the method is called before any validation is done. From what you are saying, it appears that you want to do preprocessing AFTER the form fails validation but before a result is returned back to the user. Thanks, Chris ----- Original Message ----- From: "Tao Starbow" <[EMAIL PROTECTED]> Newsgroups: gmane.comp.java.open-symphony.webwork Sent: Friday, December 12, 2003 4:48 PM Subject: Setup form on validation failure... > Does anyone have any tips on doing preprocessing when a form fails > validation? > I have a form that some information from the database to set up the user > interface. > Normally I just do this in the execute method. But when the form fails > xwork validation, the execute method is never called. Does the > ValidateInterceptor have a hook for something like an onFail method? > > thanks, > -tao starbow > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork