锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产欧美视频在线,97影视大全免费追剧大全在线观看,99re6这里只有精品http://www.aygfsteel.com/wshsdlau/category/51799.html濡備綍瀛﹀ソjava錛屽叾瀹炲緢綆鍗曪紝鍙鐢ㄥ績浣撲細錛屾參鎱㈢Н绱紒zh-cnFri, 25 May 2012 05:55:13 GMTFri, 25 May 2012 05:55:13 GMT60鍐欎竴涓渶綆鍗曠殑Servlethttp://www.aygfsteel.com/wshsdlau/archive/2011/04/29/379172.html鍝堝笇鍝堝笇Fri, 29 Apr 2011 07:11:00 GMThttp://www.aygfsteel.com/wshsdlau/archive/2011/04/29/379172.htmlhttp://www.aygfsteel.com/wshsdlau/comments/379172.htmlhttp://www.aygfsteel.com/wshsdlau/archive/2011/04/29/379172.html#Feedback0http://www.aygfsteel.com/wshsdlau/comments/commentRss/379172.htmlhttp://www.aygfsteel.com/wshsdlau/services/trackbacks/379172.htmlWeb.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>ValidateView</servlet-name>
    
<servlet-class>org.man.prj.ValidateView</servlet-class>
  
</servlet>

  
<servlet-mapping>
    
<servlet-name>ValidateView</servlet-name>
    
<url-pattern>/ValidateView</url-pattern>
  
</servlet-mapping>
  
<welcome-file-list>
    
<welcome-file>index.jsp</welcome-file>
  
</welcome-file-list>
</web-app>

package org.man.prj;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ValidateView extends HttpServlet {

    
/**
     * The doGet method of the servlet. <br>
     *
     * This method is called when a form has its tag value method equals to get.
     * 
     * 
@param request the request send by the client to the server
     * 
@param response the response send by the server to the client
     * 
@throws ServletException if an error occurred
     * 
@throws IOException if an error occurred
     
*/
    
public void doGet(HttpServletRequest request, HttpServletResponse response)
            
throws ServletException, IOException {

        doPost(request, response);
    }

    
/**
     * The doPost method of the servlet. <br>
     *
     * This method is called when a form has its tag value method equals to post.
     * 
     * 
@param request the request send by the client to the server
     * 
@param response the response send by the server to the client
     * 
@throws ServletException if an error occurred
     * 
@throws IOException if an error occurred
     
*/
    
public void doPost(HttpServletRequest request, HttpServletResponse response)
            
throws ServletException, IOException {

        response.setContentType(
"text/html");
        PrintWriter out 
= response.getWriter();
        out.println(
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
        out.println("<HTML>");
        out.println(
"  <HEAD><TITLE>A Servlet</TITLE></HEAD>");
        out.println(
"  <BODY>");
        out.print(
"    This is ");
        out.print(
this.getClass());
        out.println(
", using the POST method");
        out.println(
"  </BODY>");
        out.println(
"</HTML>");
        out.flush();
        out.close();
    }

}
杈撳叆tomcat楠岃瘉涓涓嬶細
http://localhost:8888/Validate/ValidateView




鍝堝笇 2011-04-29 15:11 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 锡林郭勒盟| 海门市| 双柏县| 体育| 共和县| 苏尼特右旗| 墨竹工卡县| 潞西市| 定南县| 永德县| 大兴区| 万年县| 玉溪市| 凯里市| 基隆市| 忻州市| 新闻| 娱乐| 大荔县| 桂东县| 四会市| 毕节市| 宝丰县| 连江县| 新巴尔虎右旗| 宽甸| 金平| 开江县| 玉环县| 武清区| 桃江县| 桦甸市| 清新县| 且末县| 巩义市| 江口县| 梁河县| 巨野县| 湘乡市| 德格县| 新平|