...
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:
- globally, using the Conversion Error Interceptor
- 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.