tomcat5.0 浏览直接显示主页
程序一切都完毕了.在正合的时候出现了点问题.
每次启动TOMCAT的时候总要输入http://localhost:8080/demo/index.jsp
才能显示正常的页面
如果输入http://localhost:8080 本想让它自动显示http://localhost:8080/demo/index.jsp
一样的内容.在网上也找了很多相关的资料看.看网上说都是一些比较简单。自己也试了试.可是一直没有成功。有的说在conf/server.xml改下这文件就可以了.
可是改了同样还出现问题.
<?xml version= '1.0 ' encoding= 'utf-8 '?>
<Server>
<Listener className= "org.apache.catalina.mbeans.ServerLifecycleListener "/>
<Listener className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener "/>
<GlobalNamingResources>
<Environment name= "simpleValue " type= "java.lang.Integer " value= "30 "/>
<Resource auth= "Container " description= "User database that can be updated and saved " name= "UserDatabase " type= "org.apache.catalina.UserDatabase "/>
<ResourceParams name= "UserDatabase ">
<parameter>
<name> factory </name>
<value> org.apache.catalina.users.MemoryUserDatabaseFactory </value>
</parameter>
<parameter>
<name> pathname </name>
<value> conf/tomcat-users.xml </value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<Service name= "Catalina ">
<Connector acceptCount= "100 " connectionTimeout= "20000 " disableUploadTimeout= "true " port= "8080 " redirectPort= "8443 " maxSpareThreads= "75 " maxThreads= "150 " minSpareThreads= "25 ">
</Connector>
<Connector port= "8009 " protocol= "AJP/1.3 " protocolHandlerClassName= "org.apache.jk.server.JkCoyoteHandler " redirectPort= "8443 ">
</Connector>
<Engine defaultHost= "localhost " name= "Catalina ">
<Host appBase= "webapps " name= "localhost ">
<Logger className= "org.apache.catalina.logger.FileLogger " prefix= "localhost_log. " suffix= ".txt " timestamp= "true "/>
</Host>
<Logger className= "org.apache.catalina.logger.FileLogger " prefix= "catalina_log. " suffix= ".txt " timestamp= "true "/>
<Realm className= "org.apache.catalina.realm.UserDatabaseRealm "/>
</Engine>
</Service>
</Server>
这是server.xml里面所以的分支 怎么改才对.请大虾指点
等待