在browser输入地址http://127.0.0.1:8080/simplejsp/getdata.html,
然后提交按纽出现
      type Status report
     message /simplejsp/GetDataServlet
     description The requested resource (/simplejsp/GetDataServlet) is not available.
目录是simplejsp/Web-Root/getdata.html
     simplejsp/Web-Root/src/GetDataServlet.javagetdata.html是:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>getdata.html</title>

    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->  </head>
  
  <body>
    <form path="/sevlet" action="/servlet/GetDataServlet" method="POST">
<p>Name:<input type="text" size="15" name="userName"/></p>
<p>Destination:
<select name="location">
<option value="California">California</option>
<option value="Washington">Washington</option>
<option value="New York">New York</option>
<option value="Florida">Florida</option>
</select></p>
<p><input type="submit" value="GO"/></p>
</form>
  </body>
</html>自动生成的web.xml如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" 
xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>GetDataServlet</servlet-name>
    <servlet-class>GetDataServlet</servlet-class>
  </servlet>  <servlet-mapping>
    <servlet-name>GetDataServlet</servlet-name>
    <url-pattern>/servlet/GetDataServlet</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>