日期:2014-05-19  浏览次数:20635 次

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">
中间加个空格
要不我这里显示是报错的