tomcat默认首页设置问题 我想在地址栏里写http://localhost然后就直接跳到C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\home\index.jsp这样怎么设置呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 首先在server.xml中修改端口号为80 <Connector port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />然后修改默认Host根目录为home(appBase="home")<Host name="localhost" debug="0" appBase="home" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">试试看吧 把webapp\root\web.xml的 <servlet> <servlet-name>org.apache.jsp.index_jsp</servlet-name> <servlet-class>org.apache.jsp.index_jsp</servlet-class> </servlet> <servlet-mapping> <servlet-name>org.apache.jsp.index_jsp</servlet-name> <url-pattern>/index.jsp</url-pattern> </servlet-mapping>删除掉加上 <welcome-file-list> <welcome-file>..\home\index.jsp</welcome-file> </welcome-file-list> 使用默认的80端口,然后在web.xml中配置起始页 关于JAVA和JAVASCRIPT互相取参数的问题 struts2中,JS文件里怎么获得后台action中传过来的值 图片存放问题 如何加载sql server的数据库驱动 怎么将mysql数据库的时间加上8个小时? 问下关于RESTFUL的页面跳转 菜鸟求教Struts2LoginAction跳转到页面数据准备问题 servlets 我到底应过去当老师还是做程序员呢? PreparedStatement在bean中的使用... 集群与负载均衡讨论 不知不觉凌晨4点了,还没有搞定,请高手指点,估计是配置问题,但是.....
<Connector port="80"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
然后修改默认Host根目录为home(appBase="home")
<Host name="localhost" debug="0" appBase="home"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
试试看吧
的 <servlet>
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<servlet-class>org.apache.jsp.index_jsp</servlet-class>
</servlet> <servlet-mapping>
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<url-pattern>/index.jsp</url-pattern>
</servlet-mapping>
删除掉加上
<welcome-file-list>
<welcome-file>..\home\index.jsp</welcome-file>
</welcome-file-list>