I am working on an old web application that uses Struts 1.1. To do business validations (complex validations associated with several form properties and backend service calls), I wrote an ActionForm implementation that calls a chain of validators in the ActionForm.validate method.
The validator chain is implemented using the commons chain. Everything is fine, except that when an exception occurs in ActionForm.validate, it is not caught by the struts exception handler, instead, a stack is displayed on the screen. The struts exception handler does not understand that
In any case, to avoid stacktrace on the page and propagate the exception to the struts exception handler?
thank
source
share