struts中的配置 将 path="/bbs/regist" 时就会出现404错误!<action path="/bbs/regist" type="wy.com.bbs.action.RegistAction"
scope="request" input="input" parameter="method" name="user"
unknown="false" validate="true">
<forward name="success" path="/bbs/registJinDi.jsp" />
<forward name="imgerror" path="/bbs/error.jsp" />
</action>如果 path="/bbs/regist" 改为 path ="/regist" 就正常!这是什么问题?大家帮忙看看!急!!!

解决方案 »

  1.   

    路径问题和path="/bbs/regist"设定没关系
    如果设置为path="/bbs/regist"你访问的全路径就是http://ip:8080/project/bbs/regist.do
    反之设置为path="/regist"你访问的全路径就是http://ip:8080/project/regist.do
      

  2.   

    如果用http://ip:8080 方式访问是没有问题的,现在时用域名访问,才出现那种问题,不知道path="/bbs/regist" 和path="/regist" 有什么区别?
      

  3.   

     path="/bbs/regist"你的path怎么设置的  你的访问路径就应该怎么写
    http://localhost:8080/project/bbs/regist.do