Processing of passing Chinese parameters by URL in jsp, and passing Chinese by jspurl

Source: Internet
Author: User

Processing of passing Chinese parameters by URL in jsp, and passing Chinese by jspurl
EncodeURI (Chinese) is used in the url of the page to encode Chinese characters, and URLDecoder is used in the java program of the server. decode (Chinese, "UTF-8") can be decoded;
If the url needs to pass + ,#,? EncodeURIComponent (Chinese) can be used as special symbols. The server decoding method is the same as that of encodeURI.
How to solve the problem of garbled Chinese parameters passed through URLs in jsp

We recommend that you do not use this method as much as possible. It is best to use form submission to save trouble and do not consider coding.

Question about passing jsp url parameters

What does it mean? Not understood
Four groups of usernames and passwords are set ???????

And your URL is too long.
UserLogin! LoginWithoutCode. action is too long
TxtLoginName = hlteacher & txtPassword = 999999
TxtLoginName
TxtPassword
There is no need to use such a long time.
Login. action? Uname = *** & pwd = 123
Login. action? U = *** & p = 123

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.