在Tomcat\webapps下建一个文件夹bbs.把wms下的文件全部拷贝到bbs中重新启动tomcat,OK
解决方案 »
- jspsmartupload 执行upload()方法报错
- getSession().getAttribute()得不到参数?
- Flex与java交互连接数据的问题
- 请教:关于javabean反射代理的问题。
- 二级下拉框的问题,请大家帮我查一下是啥错呢,谢谢,50分,在线等
- 求助:哪位高手能帮忙解决JFreeChart在unix环境下生成图形的异常问题?
- apache2+tomcat4整合问题
- 请教:关于JBUILD的教材在哪里有下载?
- Bean 连数据库的问题,在线等待,诚心请各位帮忙!
- 关于shiro做的一个登录测试
- 请问如何实现这个功能(在线等待,急!!!)
- 我用来上传文件到数据库的程序,可是不行,帮我看看吧!
有别的方法吗?
我想运行一下
我的tomcat下面没有webapp这个目录啊!
更改server.xml配置文件……
……
……
……
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
</Context>
<Context path="/bbsTJ" docBase="D:\JavaSoft\cetc\bbsTJ" debug="0" reloadable="true"/>
<Context path="/pool" docBase="D:\JavaSoft\cetc_pool" debug="0" reloadable="true"/>
<Context path="/cetc" docBase="D:\JavaSoft\cetc" debug="0" reloadable="true"/>
<Context path="/mobil" docBase="D:\JavaSoft\mobil" debug="0" reloadable="true"/> </Host> </Engine> </Service> <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with……
……
……
……重点是找到</Context>,大概在288行左右;然后添加一条配置信息如下<Context path="/bbs" docBase="X:\JavaSoft\cetc\bbsTJ" debug="0" reloadable="true"/>docBase是物理路径path是你想要显示的请求url
另外有些相关的东东你该知道的,顺便也提一下,呵呵,拿你当菜菜了……应用发布目录下的WEB-INF下面有个web.xml,应该配置默认访问文件类型……
……
……
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>……
……
……server.xml配置文件的位置:你的服务器安装目录\conf
比如我的是:D:\JavaSoft\Apache Tomcat 4.0\conf