Solution to the random code of JSP page

Time:2020-11-20

Solution to the random code of JSP page

JSP page JS:

Encodeurcomponent should be used twice
encodeURIComponent(encodeURIComponent(userAccount));

java:
String  userAccount = java.net.URLDecoder . decode (useraccount, “UTF-8”); / * exception needs to be handled*/

It is a personal remark for later use