Hi Craig,

> OK, now I see what you are after.  I'm modifying the logic of
processValidate()
> to do the following basic steps:
> * If there is no form bean, skip validation
> * If the request was cancelled, skip validation
> * Call the validate method:
>     * If no errors, continue normal request handling
>       by calling the action etc.
> * (At this point, we know a validate error occurred)
> * If this is a multipart request, roll it back
> * If there is no input form defined, report an error 500
>   because the application is mis-configured (a form bean
>   is defined, but no input page to return to)
>
> Does that sound right?

Excellent. I think you should add an attribute to enable/disable automatic
rollback for multipart forms (when someone upload a few MB file and it
failed because his upload logon is invalid, that's cool to let him a second
chance to enter the logon (in the "input" page) without resubmiting the
file...) and it will be perfect.

Pierre Métras


Reply via email to