菜鸟问个TOMCAT 配置简单问题,劳烦解答下,谢谢有个WEB项目是STRUTS+SPRING开发的,登陆界面是LOGIN.JSP,对应的ACTION是LOGINACTION.JAVA
按我所想的在IE中输入http://localhost:8080/xx/LOGINACTION.do才开始了这整个系统。可是如果在TOMCAT里面这样配置
<Context path="/ss" docBase="D:/projects/xx/Src/front/Jsp"   debug="1" reloadable="false" crossContext="true"> D:/projects/xx/Src/front/Jsp这个目录下包括所有的配置文件和JSP如web.xml在IE中输入http://localhost:8080/ss就直接显示登陆界面了,这个配置系统是怎么自动找到LOGINACTION.do并执行的?

解决方案 »

  1.   

    应该是你在web.xml里配置了首页吧。如果没有配置的话,你检查检查index.jsp,index.html,index.htm等几个文件看看有没有跳转到login.jsp的代码
      

  2.   

    哦,在工程里面WEB.XML有
    <welcome-file-list id="WelcomeFileList">
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.jws</welcome-file>
      </welcome-file-list> index.html是首页
    你说的这个吗?这个怎么和http://localhost:8080/ss联系起来的?谢谢
      

  3.   

    welcome-file-list 站点的初始画面吧,系统首先访问的页面,为什么不先通过LOGINACTION.do进行预处理呢?
      

  4.   

        <welcome-file-list id="WelcomeFileList"> 
        <welcome-file>aa.jsp </welcome-file> 
        </welcome-file-list> 修改aa.jsp没用
      

  5.   

    是不是
    WEB.XML有 
    <welcome-file-list id="WelcomeFileList"> 
        <welcome-file>index.jsp </welcome-file> 
      <welcome-file>index.html </welcome-file> 
        <welcome-file>index.jws </welcome-file> 
      </welcome-file-list> 
    可是改了没变化啊
      

  6.   

    你找找struts-config.xml,在struts-config.xml中应该有<action-mappings>属性在那里面配置了action和你的login.jsp之间的映射
      

  7.   

    我记得是在xml里有配置信息,哪个忘了,也许是我楼上的兄台所说的struts-config.xml