There is no Action mapped for namespace /jsp/user and action name user_add_action. - 怎么改啊
struts<packagename="mypackage"namespace="/user"extends="struts-default"><actionname="...
struts
<package name="mypackage" namespace="/user" extends="struts-default">
<action name="user_add_action" class="com.clps.bbs.action.User_Add_Action">
<result name="success">/login.jsp</result>
<result name="error">/jsp/error.jsp</result>
</action>
</package>
jsp
<FORM name="regForm" onSubmit="check()" action="user/user_add_action" method="post"> 展开
<package name="mypackage" namespace="/user" extends="struts-default">
<action name="user_add_action" class="com.clps.bbs.action.User_Add_Action">
<result name="success">/login.jsp</result>
<result name="error">/jsp/error.jsp</result>
</action>
</package>
jsp
<FORM name="regForm" onSubmit="check()" action="user/user_add_action" method="post"> 展开
2个回答
展开全部
namespace="/"和namespace="/user"是不同的,你访问时网址上写的路径一样,
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询