在resin 3.x中设置resin.conf,将directory-servlet属性设置为false既可。
resin 2.x中没有directory-servlet,设置resin.conf,找到<web-app id='/'>,在其后加入<directory-servlet id=false/> ,如果不行,可以进行如下修改(粗体字部分)
<host id=''>
<!--
- The standalone server should uncomment for access logging.
- With another web server, like Apache, the web server will
- log this information.
<access-log id='log/access.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'/>
-->
<error-log id='log/error.log'/>
<directory-servlet>none</directory-servlet>
不知道还有没有更好的办法?