struts2 在页面使用校验时,action属性值要加上后缀。否则会出现异常:
严重: Servlet.service() for servlet [jsp] in context with path [/text] threw exception [Method public java.util.List org.apache.struts2.components.Form.getValidators(java.lang.String) threw an exception when invoked on org.apache.struts2.components.Form@447e3c19 - Class: freemarker.ext.beans.SimpleMethodModel
File: SimpleMethodModel.java
Method: exec
Line: 130 - freemarker/ext/beans/SimpleMethodModel.java:130:-1] with root cause
java.lang.NullPointerException