Parameters with special characters submitted by get


How to handle it in JSP?
For example, when I connect < a href = “product. JSP? Name = A & T plastic” > A & T plastic < / a >, I cannot read the correct value of the name parameter when accepting the parameter. How can I read it correctly? There are other special characters
The meaning of special characters URL encoding
#Used to mark a specific document location% 23
%Encode special characters% 25
&Separate different variable value pairs% 26
+Space% 2b in variable value
\Indicates directory path% 2F
=Used to connect key and value% 3D
? Represents the beginning% 3F of the query string
You can use: codelabel = <% = Java. Net. Urlencoder. Encode (sudrname6)% > transcoding

Recommended Today

Less sass SCSS stylus of CSS preprocessor

Let’s ask ourselves a question: why do we need a preprocessor?The answer is self-evident, that is, CSS itself has some disadvantages: The syntax is not strong enough to be written nested, resulting in unclear style logic in the project. There is no variable and logical reuse mechanism. When it is necessary to reuse code, you […]