Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Type Conversion Error Handling

Wiki Markup
{snippet:id=error-reporting|javadoc=true|url=com.opensymphony.xwork.util.XWorkConverter}

There are two ways the error reporting can occur:

  1. globally, using the Conversion Error Interceptor
  2. on a per-field basis, using the Conversion Field Validator

By default, the conversion interceptor is included in webwork-default.xml in the default stack, so if you don't want conversion errors reporting globally, you'll need to change the interceptor stack and add additional validation rules.