Golden Apple app development system customized source code

Golden Apple system development, "Von Health" [191﹎5743﹍0738] [micro] Golden Apple app development or electricity, Golden Apple system custom development, software development golden apple, golden apple app system custom development, systems development golden apple, golden apple app development, Golden Apple system development system development app. Golden Apple app development system source code customization, Golden Apple system development app source code customization.

  Tips: Professional Systems Development app, and it also is not a party platform did not have any relationship, if you're a player, the following article is for reference only, can develop similar.

  WebServlet(urlPatterns="/demoServlet")

  public class DemoServlet extends HttpServlet{

  Override

  protected void doPost(HttpServletRequest req,HttpServletResponse resp)throws ServletException,IOException{

  doGet(req,resp);

  Override

  protected void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{

  request.setCharacterEncoding("UTF-8");

  String k1=request.getParameter("k1");

  System.out.println(k1);

  String k2=request.getParameter("k2");

  String res=new String(k2.getBytes("UTF-8"),"UTF-8");

  System.out.println(res);

  <%page import="java.net.URLEncoder"%>

  <%page contentType="text/html;charset=UTF-8"language="java"%>

  <html>

  <head>

  <title>login</title>

  <meta http-equiv="Content-Type"content="text/html;charset=UTF-8"/>

  </head>

  <body>

  <a href='/demoServlet?k1=abcd&k2=我爱编程'>URL中文</a><br>

  </body>

  </html>

Guess you like

Origin www.cnblogs.com/aaa002/p/11807022.html