读书人

求教关于提交有关问题!

发布时间: 2012-01-18 00:23:26 作者: rapoo

求教关于提交问题!!!
1,<form name="form1" method="post" action="jsp.do?method=myregist">
2, <action path="/jsp" type="com.person.info.action.UserInfoAction"
scope="request" parameter="method">
<forward name="useregistlist" path="/jsp/personshow.jsp"/>
</action>

3,点击提交:报

HTTP Status 404 - /jsp.do

--------------------------------------------

type Status report

message /jsp.do

description The requested resource (/jsp.do) is not available.


--------------------------------------------

Apache Tomcat/5.5.9

求教各位!!!

[解决办法]
404错误
找不到页面
看看struts配置是否有相应的action
[解决办法]
1, <form name="form1" method="post" action="/jsp.do?method=myregist"> //此处加上/试试
2, <action path="/jsp" type="com.person.info.action.UserInfoAction"
scope="request" parameter="method">
<forward name="useregistlist" path="/jsp/personshow.jsp"/>
</action>

读书人网 >Java Web开发

热点推荐