首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

struts2中的错误有关问题,雪地里跪等

2013-01-28 
struts2中的异常问题,雪地里跪等错误代码如下:SEVERE: Could not find action or result/Struts2leegang/l

struts2中的异常问题,雪地里跪等
错误代码如下:
SEVERE: Could not find action or result
/Struts2leegang/loginProForm.action;jsessionid=B0176191B7C4132747204A0B85D5D8D6
No result defined for action org.gao.struts.LoginFormAction and result input


jsp代码:
<s:form action="loginProForm" method="post">
<s:textfield name="user.name"   key="userName"/>
<s:password name="user.pass"  key="userPass"/>
<tr>
<td colspan = "2" align="right">
<s:submit key="submit" theme="simple"/>
<s:reset key="reset" theme="simple"/>
</td>
</tr>
</s:form>

struts配置:
<action name="loginProForm"class ="org.gao.struts.LoginFormAction">
    <result name = "success">/WEB-INF/content/welcom.jsp</result>
    <result name = "error">/WEB-INF/content/error.jsp</result>
</action> struts action jsp could?not?find? input
[解决办法]
另外建议:
<action name="loginProForm"class ="org.gao.struts.LoginFormAction">
中间加个空格
要不我这里显示是报错的

热点排行
Bad Request.