Zhaopin future app development system source code customization

Zhaopin future system development "Von Health" [191﹎5743﹍0738] [micro or electric] chi future app development, Zhaopin future systems custom development, chi future of software development, Zhaopin future app system custom development, Zhaopin future systems development chi future app development, systems development chi future system development app. Zhaopin future app development system source code customization, Zhaopin future 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/11806975.html