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" 就正常!这是什么问题?大家帮忙看看!急!!!
如果设置为path="/bbs/regist"你访问的全路径就是http://ip:8080/project/bbs/regist.do
反之设置为path="/regist"你访问的全路径就是http://ip:8080/project/regist.do
http://localhost:8080/project/bbs/regist.do