可以将jsp文件放在ROOT目录下
运行:http://localhost:8080/*.jsp

解决方案 »

  1.   

    http://localhost:8080/*.jsp
    不过要将JSP放在DEFALTROOT 下
      

  2.   

    <Context path="/web_access_path" docBase="D:\\ur_jsp_file" 
             debug="0" privileged="true"/>找到%tomcat_home%/conf/server.xml中 
            <Context path="/examples" docBase="examples" debug="0"
                     reloadable="true" crossContext="true">
    加这个前面就行了
      

  3.   

    tomcat\conf\server.xml add:
    <Context path="/erb" docBase="e:\erb" debug="0"
                     reloadable="true" crossContext="true">
    .................
    </Context>
    运行:http://localhost:8080/erb/*.jsp
    or
    tomcat\conf\server.xml add:
    <Context path="/" docBase="e:\erb" debug="0"
                     reloadable="true" crossContext="true">
    .................
    </Context>
    运行:http://localhost:8080/*.jsp
    //注意path不同,运行时略有不同
      

  4.   

    在你的tomcat\conf\server.xml中加入
    <Context path="/test" docBase="test" debug="0"
                     reloadable="true">
    就可以建一个与examples同级的目录test了