resin的servlet不用在xml里面配置吧
之间放在servlet目录下就可以了

解决方案 »

  1.   

    寒一个,servlet的配置在resin的conf目录下??
    配置web-inf/web.xml
    保证类在web-inf/classes下
    错误说明找不到class,因为这个class只对虚拟目录有效
      

  2.   

    1.确保你的test.class文件在“虚拟目录/WEB-INFO/classes/com”下.
    2.在“虚拟目录/WEB-INFO"下的web.xml文件中增加以下内容:
    <servlet servlet-name="comtest"  servlet-class="com.test"/>
    <servlet-mapping url-pattern="/comtest"  servlet-name="comtest"/>如此调用应该没问题了吧
      

  3.   

    resin中如何使用servlet假设我们的servlet类文件是HelloWorld.java,package Hello1.确保你的HelloWorld.class文件在“虚拟目录/WEB-INFO/classes/Hello”下.
    2.在“虚拟目录/WEB-INFO"下的web.xml文件中增加以下内容:
    <servlet servlet-name="hellotest"  servlet-class="Hello.HelloWorld"/>
    <servlet-mapping url-pattern="/hello"  servlet-name="hellotest"/>
    3.以后就可以用“http://localhost/hello"或者"/hello"来调用servlet类HelloWorld了。