Form form Submit Chinese garbled problem, DWZ modelandview jump form has Chinese parameter garbled

Source: Internet
Author: User

Form form Submit Chinese garbled problem, DWZ modelandview jump form has Chinese parameter garbled

method= ' get ' Chinese parameter is garbled because it is placed after the URL

Method= ' Post ' Chinese is not garbled

DWZ also have this similar problem in using Modelandview to jump is not defined type, this time will go get, resulting in a modelandview jump form with Chinese parameters garbled, in the source code of DWZ:

Dwz.min.js/dwz.core.js Modify Ajaxurl's $.ajax ({type:op.type | | ' GET ', for $.ajax ({type:op.type | | | ' POST ',

@RequestMapping (value= "/account/tbcusfirmchg/savenewuser", method = {Requestmethod.post})

Public Modelandview Savenewuser (@RequestParam (value = "Customerkey", required = False) String Customerkey,

@RequestParam (value = "PZ", required = False) string[] PZ,

@RequestParam map<string, object> Reguser,model Model) throws Exception {

Reguser.put ("Market_key", integer.valueof (1));

if (Reguser.get ("Customer_key") ==null| | "". Equals (Reguser.get ("Customer_key"))) {

Reguser.put ("Cus_trade_kind", "B");

Tbcusfirmchgservice.savenewuser (Reguser, PZ);

}else{

Tbcusfirmchgservice.updateuser (Reguser, PZ);

}

Return ajaxdonebasbed (200, "Operation succeeded", "/account/tbcusfirmchg/list");

Return ajaxdoneopm ("/commonuntil/ajaxdone", 200, "Operation succeeded.") "," Tbcusfirmchgnav ","/account/tbcusfirmchg/list "," Callbacktype ");

}

Private Modelandview ajaxdonebasbed (int statusCode, string message, string forwardurl) {

Modelandview Mav = new Modelandview ("/account/tbcusfirmchg/ajaxdone");

Mav.addobject ("StatusCode", StatusCode);

Mav.addobject ("message", message);

Mav.addobject ("type", "POST");

Mav.addobject ("Navtabid", "Tbcusfirmchgnav");

Mav.addobject ("Callbacktype", "closecurrent");

Mav.addobject ("Forwardurl", Forwardurl);

Return mav;//will call list Auto-submit form query again

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.