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>

解决方案 »

  1.   

    No action instance for path
      

  2.   

    要么路径不对:比如你的login的full path应该是 /service_name/login
    要么你的com.bjsxt.struts.LoginAction存在内部错误,导致Action没有被生成。看看log.
      

  3.   

    我个人认为我是你的action中的错误,500的错误,会经常出现的,该好好的检查一下action的代码咯