你试试把server.xml中的配置改一下。<Context path="d:\jstest"
解决方案 »
- linux 上环境变量配置问题
- 最近遇到个奇怪的异常...不解!
- struts2 action到jsp js获得参数 参数传递问题
- 彻底无奈了,STRUTS2类型转换的异常!内详....谢谢各位了!
- 【weblogic】问题
- Validator 验证失败跳转问题
- 如何修改Tomcat5的jsp文件放置路径?
- 這個是啥問題?高分求助~~~~~~~~~
- 请问哪里有关于J2EE安全的版块?最好是英文的。
- 我将编译好的项目中的一个class文件反编译后修改了
- QQ:13628198 遇到的第一个struts的例子就没弄对.各位老大帮帮忙.谢谢。Email:[email protected]
- 关于hibernate的问题
我用搜索了下,说没找到。
在里面查找context找到这个东西
<Context path="XXXXX" docBase="XXXXX" debug="0"
自己把XXXX改成你想改的就行了
一个XML文件代到一个目录想设一个虚拟目录的话,就随便拷一个改改就是了...
path为虚拟目录名
docBase为物理目录名一楼说的是TOMCAT4的设法...
<?xml version="1.0" encoding="gbk"?>
<!-- Context configuration file for the Tomcat Administration Web App $Id: admin.xml,v 1.3 2004/02/20 17:09:19 remm Exp $-->
<Context path="/gree" docBase="E:\Java设计\gree2004-9-13\stockmodule"> <!-- Uncomment this Valve to limit access to the Admin app to localhost
for obvious security reasons. Allow may be a comma-separated list of
hosts (or even regular expressions).
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127.0.0.1"/>
-->
</Context>