本帖最后由 syoumei 于 2009-10-11 09:20:54 编辑

解决方案 »

  1.   

    <welcome-file-list>
    <welcome-file>main.jsp </welcome-file>
    </welcome-file-list> 
    这样写不行吗?没有必要写上http:\\127.0.0.1:8080\ 吧
    struts会自动去当前系统的webroot下去找main.jsp。你如果想改变到别的文件夹下的页面的时候
    可以写成
    <welcome-file-list>
    <welcome-file>/test/main.jsp </welcome-file>
    </welcome-file-list> 
      

  2.   


    http:\\127.0.0.1:8080\是我测试访问的地址,页面404错误,后台说找不到action 直接访问http:\\127.0.0.1:8080\main.jsp是ok的另外补充下服务器jetty。不过想想这应该和服务器没关系。
      

  3.   

    <welcome-file>http:\\127.0.0.1:8080\main.jsp</welcome-file> 
    你这样写吗?struts不支持这样的写法。只能是
    <welcome-file>main.jsp</welcome-file>