|
Java學习者论坛
专门设置了一个目录放置jsp,Servlet等文件,如:D:\Mycoe,servlet放在D:\Mycoe\servlet下,虚拟目录設置 ,<Context path="/coe" docBase="F:\Mycoe\COE"
debug="0" privileged="true"/>,该目录下web-inf下的web.xml也设置过来,<servlet>
<servlet-name>
FileTransfer
</servlet-name>
<servlet-class>
IOFile.FileTransfer
</servlet-class>
<init-param>
<param-name>
PropertyFilePath
</param-name>
<param-value>
D:/Mycoe/COE/
</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>
vrmlSend
</servlet-name>
<servlet-class>
vrmlSend
</servlet-class>
<init-param>
<param-name>
PropertyFilePath
</param-name>
<param-value>
D:/Mycoe/COE/
</param-value>
</init-param>
</servlet>
原来用tomcat4.0可以运行,一点问题没有,
用4.1就说找不到指定文件,不知怎么回事,大家救救我啊!!4.0跟4.1有这么大区别吗?
Huan迎來DaoJava学习者论壇,转载请注明地址:http://www.javaxxz.com. |
|