我把我的SSH项目打包成war包,然后放入其他机器TOMCAT下的webapps目录中,然后启动项目,打开我的index.jsp页面,这都没什么问题,然后我从页面跳到action之后再跳到index.jsp的时候index.jsp上所有的js全都失效了!!!
求高手解答啊!!!!写的有点乱

解决方案 »

  1.   

    .............我发现问题了,我开始访问的路径是http://localhost:8080/yanbaibs/index.jsp到了action的时候怎么变成http://localhost:8080/yanbaibs/yanbaibs/GetColumnNameAct.action了???
    为什么多了个项目名????
      

  2.   

    你写的是相对路径吗?
    看看你从action跳转到index.jsp页面的路径是怎么写的
      

  3.   

    <action name="GetColumnNameAct" class="GetColumnNameAct" method="execute">
                <result name="success">/index.jsp</result>
            </action>这个是struts2配置文件里的