报错: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  
请大伙帮我看看,或者提供点参考吧,谢谢大家先  

解决方案 »

  1.   

    UP,UP大伙帮忙,就给偶点参考建议也好啊,谢谢大家先
      

  2.   

    不要放在.jar里。
    放在web-inf/classes里面
      

  3.   

    还是不行,我看到凌云论坛的JAVA文件就是加到web-inf的LIB里面的*.jar,想做到和他们一样
    我把JAVA文件放在web-inf/src或者 web-inf/class里面都报一样的
    web-inf里面的**.class文件是自动生成的吗,我没看到生成有*.class文件,估计是有问题,但我应该怎么做啊??
      

  4.   

    还是不行,我看到凌云论坛的JAVA文件就是加到web-inf的LIB里面的*.jar,想做到和他们一样  
    我把JAVA文件放在web-inf/src或者  web-inf/class里面都报一样的错误 
    web-inf里面的**.class文件是自动生成的吗,我没看到生成有*.class文件,估计是有问题,但我应该怎么做啊??
      

  5.   

    UP,UP,生成CLASS文件了,不过还是报错:No action instance for path /userLogin-sub could be created
    大伙再看看,可能会是什么问题啊,我再查查原因
      

  6.   

    把<form action="/userLogin-sub">就可以了
      

  7.   

    自己web.xml配置错了,现在好了,散分