HTTP Status 500 - No action instance for path /login could be created--------------------------------------------------------------------------------type Status reportmessage No action instance for path /login could be createddescription The server encountered an internal error (No action instance for path /login could be created) that prevented it from fulfilling this request.
--------------------------------------------------------------------------------Apache Tomcat/5.5.27
<struts-config> <form-beans>
<form-bean name="loginForm" type="com.bjsxt.struts.LoginActionForm"/>
</form-beans>
<action-mappings>
<action path="/login"
type="com.bjsxt.struts.LoginAction"
name="loginForm"
scope="request"
>
<forward name="success" path="/login_success.jsp"/>
<forward name="error" path="/login_error.jsp"/>
</action>
</action-mappings>
</struts-config>
<body>
<h1>用户登录</h1>
<hr>
<form action="login.do" method="post">
用户:<input type="text" name="username"><br>
密码:<input type="password" name="password"><br>
<input type="submit" value="登录">
</form>
</body>
--------------------------------------------------------------------------------Apache Tomcat/5.5.27
<struts-config> <form-beans>
<form-bean name="loginForm" type="com.bjsxt.struts.LoginActionForm"/>
</form-beans>
<action-mappings>
<action path="/login"
type="com.bjsxt.struts.LoginAction"
name="loginForm"
scope="request"
>
<forward name="success" path="/login_success.jsp"/>
<forward name="error" path="/login_error.jsp"/>
</action>
</action-mappings>
</struts-config>
<body>
<h1>用户登录</h1>
<hr>
<form action="login.do" method="post">
用户:<input type="text" name="username"><br>
密码:<input type="password" name="password"><br>
<input type="submit" value="登录">
</form>
</body>
这个action属性里面的路径不对吧
action里面的好像不用写.do了吧
<from action="/login" method="post">
//other
</form>
可參考以下配置:<action
attribute="StudentForm"
name="StudentForm"
parameter="method"
path="/student"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="editStudent" path="/editStudent.jsp"></forward>
<forward name="addStudent" path="/addStudent.jsp"></forward>
</action>jsp頁面:<form action="student.do">