index.html
成都創(chuàng)新互聯(lián)于2013年成立,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目網(wǎng)站設(shè)計制作、成都網(wǎng)站設(shè)計網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元木壘哈薩克做網(wǎng)站,已為上家服務(wù),為木壘哈薩克各地企業(yè)和個人服務(wù),聯(lián)系電話:18980820575
package cn.web.request;
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 Rdome5 extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
//將[請求體]的中文以UTF-8方式重新編碼
request.setCharacterEncoding("UTF-8");
///this.getServletContext().getRequestDispatcher("/download.html").forward(request, response);
String username = request.getParameter("username");
String password = request.getParameter("password");
String gender = request.getParameter("gender");
String[] likes = request.getParameterValues("likes");
String upfile = request.getParameter("upfile");
String city = request.getParameter("city");
String message = request.getParameter("message");
String id = request.getParameter("id");
//控制臺輸出
System.out.println("username="+username);
System.out.println("password="+password);
System.out.println("gender="+gender);
System.out.println("likes="+likes.length);
System.out.println("upfile="+upfile);
System.out.println("city="+city);
System.out.println("message="+message);
System.out.println("id="+id);
}
}
username=234324
password=234
gender=male
likes=1
upfile=
city=bj
message=23432
id=20111008
username=234324
password=234
gender=male
likes=1
upfile=
city=bj
message=23432
id=20111008