Did you debug to make sure the validations are not happening? I bet what's happening is that the validations are running, but after you chain, the error messages are masked by the (empty) error messages of the RetrieveUser action.. The chain interceptor ref should help by copying over the error message maps. It's not helping? It needs to be applied to the RetrieveUser action, not this action...
> -----Original Message----- > From: Eric Pugh [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 10, 2004 12:20 PM > To: Os-Webwork (E-mail) > Subject: [OS-webwork] Chaining Validation messages? > > > Hi all, > > I have a "Save" action where I save the data, and if an input > is required, it forwards to another "Retrieve" action to > populate the data I need in the Velocity template. I then > added in validation to my "Save" action. > > Now, if I change it to not chain to the "Retrieve" action, > but instead go directly to the Velocity template, then it > valiates and shows me the errors. But, it is missing data > that the "Retrieve" action provided. If I put the "Retrieve" > action back then it never performs the validations. My > xwork.xml looks like this: > > <action name="SaveUser" > class="com.upstate.catalog.actions.users.SaveUserAction"> > <result name="success" > type="chain">RetrieveUser</result> > <result name="input" > type="chain">RetrieveUser</result> > <interceptor-ref name="defaultComponentStack"/> > <interceptor-ref name="userEdit"/> > <interceptor-ref > name="validationWorkflowStack"/> > </action> > > I though I needed something like this: > <interceptor-ref name="chain"/> > > added, but it doesn't seem to have any effect. > > Thanks, > Eric Pugh > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System > offering advanced branching capabilities and atomic changes > on 50+ platforms. Free Eval! > http://www.perforce.com/perforce/loadprog.html > > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork