有这么一些配置文件
<action name="hello" class="com.hello">
<result name="input">hello1</result>
<result name="success">hello1</result>
<interceptor-ref name="defaultStack" />
</action>
<action name="hello1" class="com.hello1">
<result name="input">/MyJsp.jsp</result>
<result name="success">/MyJsp.jsp</result>
<interceptor-ref name="defaultStack" />
</action>
当我在hello这个action里面产生了actionerror或者filederror之类的,怎么在hello1的MyJsp.jsp里面显示出来???

解决方案 »

  1.   

    在jsp页面用struts2标签可以取出来,
    <actionerror/> 
    <fielderror/> 
      

  2.   

    在jsp页面用struts2标签可以取出来,
    <actionerror/>  
    <fielderror/> 
      

  3.   

    在jsp页面用struts2标签可以取出来,
    <actionerror/>   
    <fielderror/> 
      

  4.   

    在action name="hello" class="com.hello">  中配置input 时转到 action =hello1
    的/MyJsp.jsp就行了
      

  5.   

    就是取不到!奇怪,要是行也不会出来问了
    单纯的去可以,但是通过了hello1再出来就没了
      

  6.   

    在jsp页面用struts2标签可以取出来,
    <actionerror/>   
    <fielderror/> 
      

  7.   

    就是取不到!奇怪,要是行也不会出来问了
    单纯的去可以,但是通过了hello1再出来就没了
      

  8.   

    就是取不到!奇怪,要是行也不会出来问了
    单纯的去可以,但是通过了hello1再出来就没了
      

  9.   

    每个action的valueStack都是不一样的吧
    用标签去不出来的