1、我在tomcat下有个工程webapps/myapp,在myapp下有个index.htm,用来作为跳转到登陆首页,其代码如下:
<script language="JavaScript">
window.location="web/login/login.htm";
</script>
就上面这三行,我在IE浏览器里执行好像没提示出错,但好像在其它浏览器会提示出错。这几句话就这么写有问题吗??
2、另外,我只装tomcat没装apache的话,用http://localhost:8080/myapp就可以直接访问到index.htm了,因为我在webapps/myapp/WEB-INF下的web.xml里写了如下几句
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
  </welcome-file-list>
;但当我将tomcat和apache整合后,好像web.xml里的这几句welcome-file-list就不起作用了,用http://localhost/myapp不能访问,只能用http://localhost/myapp/index.htm才行,这要怎么改才能不加后面这个index.htm就能访问?