struts2的validation的错误返回给action时怎么显示出来?

隐藏起来 2010-11-21
<action name="hello2" class="com.Hello"
   method="add">
   <interceptor-ref name="defaultStack" />
   <result name="input" >/MyJsp.jsp</result>
   <result name="success" >/MyJsp.jsp</result> 
  </action>

就能显示错误,因为返回给的是jsp
<action name="hello" class="com.Hello"
   method="add">
   <interceptor-ref name="defaultStack" />
   <result name="input" type="chain">hello1</result>
   <result name="success" type="chain">hello1</result>
  </action>
  <action name="hello1">
  <interceptor-ref name="defaultStack" />
   <result name="input">/MyJsp.jsp</result>
   <result name="success">/MyJsp.jsp</result> 
  </action>

就不能显示错误,因为返回的是给action了。

这个怎么搞?求解
Global site tag (gtag.js) - Google Analytics