resin中怎么放置servlet resin的servlet不用在xml里面配置吧之间放在servlet目录下就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 寒一个,servlet的配置在resin的conf目录下??配置web-inf/web.xml保证类在web-inf/classes下错误说明找不到class,因为这个class只对虚拟目录有效 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"/>如此调用应该没问题了吧 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了。 从服务器上下载文件到本地指定文件夹下 lucene分词索引问题 spring acegi如何配置,我配的不对请大家指点 用过LazyValidatorForm的朋友帮忙,使用 LazyValidatorForm 验证多文件上载异常。 为什么SPRING的View端的${变量}未进行替换 ssh框架中用到了多个配置文件,互相间如何联系上的? 基础java知识,大家帮忙解决一下! 加分问题 关于MQJMS1034E类型的错误 关于hibernate连数据库的一个问题? weblogic中jsp编译后的临时文件放在哪个目录下。 ejb基础问题
配置web-inf/web.xml
保证类在web-inf/classes下
错误说明找不到class,因为这个class只对虚拟目录有效
2.在“虚拟目录/WEB-INFO"下的web.xml文件中增加以下内容:
<servlet servlet-name="comtest" servlet-class="com.test"/>
<servlet-mapping url-pattern="/comtest" servlet-name="comtest"/>如此调用应该没问题了吧
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了。