在访问http://localhost:8080的时候可以访问.   那你用什么地址访问时报的那个错?  再就是把那个index.jsp代码发出来看一下。 

解决方案 »

  1.   

    访问http://localhost:8080/FisrtLogin/index.jsp就会出错<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>My JSP 'index.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
      </head>
      
      <body>
        <form id="LoginForm" action="servlet/LoginServlet" method="post">
         用户名:<input type="text" id="name" name="name"></br>
         密  码:<input type="text" id="password" name="password"></br>
         <div align="left"><input type="submit" value="确定"> 
         <input type="reset" value="重置"> 
        </form> 
      </body>
    </html>
      

  2.   

    还有刚才试了一下,访问http://127.0.0.1:8080/examples/index.html这个地址可以访问!
      

  3.   

    在eclipse中关闭tomcat有时会报这个错误
    ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):  [../../../src/share/back/util.c:820]
    各位多多帮助,小弟不胜感激!
      

  4.   

    在访问http://localhost:8080的时候可以访问  这个是显示的INDEX.JSP里的内容?