<forward name="success" path="/BasePage" />

解决方案 »

  1.   

    你的意思是 forward到  "/layout.jsp" 
    不能写成 definition的名字(BasePage)
      

  2.   

    在 forward 中不能写成  BasePage   要直接写  .jsp
    如果成功后要跳回的话最好在 action 中写  request.sendRedirect("你的回跳地址")
      

  3.   

    <action path="/viewrecesms" type="com.meip.ReceiveAction" scope="request">
         <forward name="success" path="BasePage" />
    </action>
    这里错了吧,应该是<forward name="success" path="/BasePage.jsp" />
    而且你的路径要是对的
      

  4.   

    按楼主的写法应该可以的,试试<forward name="success" path="BasePage" redirect="false" />
      

  5.   

    1. index.jsp中<logic:forward name="welcome" />
    2.struts-config.xml中
    <global-forwards>
    <forward name="welcome" path="page.welcome" redirect="true" />
    </global-forwards>结果tomcat报错说找不到page.welcome但是如果通过一个action。在action中指定forward为page.welcome,又是可以的。
    是不是不能在global forward中指定目标为一个tiles页面啊?
      

  6.   

    <forward name="success" path="/BasePage" />
      

  7.   

    测试成功
    <action path="/index" type="org.apache.struts.actions.ForwardAction"
    parameter="page.welcome">
    </action>
    <global-forwards>
    <forward name="welcome" path="/index.do" redirect="true" />
    </global-forwards>
      

  8.   

    不懂就不要乱说
    楼主的问题可能是tiles的plugin没有启动
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property
    property="definitions-config"
    value="/WEB-INF/tiles-defs.xml" />
    </plug-in>
    我这样用就可以了