org.apache.struts2.interceptor
类 StrutsConversionErrorInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor
org.apache.struts2.interceptor.StrutsConversionErrorInterceptor
- 所有已实现的接口:
- com.opensymphony.xwork2.interceptor.Interceptor, Serializable
public class StrutsConversionErrorInterceptor
- extends com.opensymphony.xwork2.interceptor.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:
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>
- 另请参见:
ActionContext.getConversionErrors()
,
ConversionErrorInterceptor
,
序列化表格
从类 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor 继承的字段 |
ORIGINAL_PROPERTY_OVERRIDE |
从类 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor 继承的方法 |
intercept |
从类 com.opensymphony.xwork2.interceptor.AbstractInterceptor 继承的方法 |
destroy, init |
StrutsConversionErrorInterceptor
public StrutsConversionErrorInterceptor()