Class StrutsConversionErrorInterceptor

All Implemented Interfaces:
Serializable, ConditionalInterceptor, Interceptor

public class StrutsConversionErrorInterceptor extends ConversionErrorInterceptor

This interceptor extends ConversionErrorInterceptor but only adds conversion errors from the ActionContext to the field errors of the action if the field value is not null, "", or {""} (a size 1 String array with only an empty String). See ConversionErrorInterceptor for more information, as well as the Type Conversion documentation.

Interceptor parameters:

  • None

Extending the interceptor:

There are no known extension points for this interceptor.

 
 <action name="someAction" class="com.examples.SomeAction">
     <interceptor-ref name="params"/>
     <interceptor-ref name="conversionError"/>
     <result name="success">good_result.ftl</result>
 </action>
 
 
See Also:
  • Constructor Details

    • StrutsConversionErrorInterceptor

      public StrutsConversionErrorInterceptor()
  • Method Details