报错:No action instance for path /userLogin-sub could be created
JSP里面调用语句:
<html:form action="userLogin-sub" method="post" focus="username">
<table border="0">
<tr>
<td>用户名:</td>
<td><html:text property="username" /></td>
</tr>
..............
struct-config里面是:
<action path="/userLogin-sub" type="dedshh.reguser.accoper.UserLoginAction" name="userLoginForm" scope="request" validate="false" input="input">
<forward name="success" path="../accman/mainaccman.htm"/>
<forward name="input" path="/userLogin.do"/>
</action>
页面地址栏已经到http://localhost:8080/strureguser/userLogin-sub.do了,就是已经找到userLogin-sub.do了.我的UserLoginAction.java是在ECLIPSE里面路径如下:
src/dedshh/reguser/accoper/UserLoginAction.java写好然后导入到../strureguser/web-inf/lib/*.jar的,报错:No action instance for path /userLogin-sub could be created
请大伙帮我看看,或者提供点参考吧,谢谢大家先
JSP里面调用语句:
<html:form action="userLogin-sub" method="post" focus="username">
<table border="0">
<tr>
<td>用户名:</td>
<td><html:text property="username" /></td>
</tr>
..............
struct-config里面是:
<action path="/userLogin-sub" type="dedshh.reguser.accoper.UserLoginAction" name="userLoginForm" scope="request" validate="false" input="input">
<forward name="success" path="../accman/mainaccman.htm"/>
<forward name="input" path="/userLogin.do"/>
</action>
页面地址栏已经到http://localhost:8080/strureguser/userLogin-sub.do了,就是已经找到userLogin-sub.do了.我的UserLoginAction.java是在ECLIPSE里面路径如下:
src/dedshh/reguser/accoper/UserLoginAction.java写好然后导入到../strureguser/web-inf/lib/*.jar的,报错:No action instance for path /userLogin-sub could be created
请大伙帮我看看,或者提供点参考吧,谢谢大家先
放在web-inf/classes里面
我把JAVA文件放在web-inf/src或者 web-inf/class里面都报一样的
web-inf里面的**.class文件是自动生成的吗,我没看到生成有*.class文件,估计是有问题,但我应该怎么做啊??
我把JAVA文件放在web-inf/src或者 web-inf/class里面都报一样的错误
web-inf里面的**.class文件是自动生成的吗,我没看到生成有*.class文件,估计是有问题,但我应该怎么做啊??
大伙再看看,可能会是什么问题啊,我再查查原因