1. 程式人生 > >Struts 1+Tomcat The requested resource (XXXAction) is not available.

Struts 1+Tomcat The requested resource (XXXAction) is not available.

HTTP Status 404 - /hr/hr/LeaveOfficeAction

type Status report

message /hr/hr/LeaveOfficeAction

description The requested resource (/hr/hr/LeaveOfficeAction) is not available.

Apache Tomcat/6.0.14

Jsp頁面中的action設定是:action="<%=basePath%>hr/LeaveOfficeAction?method=selectUser">

找了很久都沒發現,後來靜下心來一看,原來是沒有寫do

把上面的配置改成action="<%=basePath%>hr/LeaveOfficeAction.do

?method=selectUser">

問題迎刃而解!