servelt request parameter value contains ampersand?
问题 I have below the url. http://localhost:8080/servlet?user=John&message=hai&hello&recipient=scott In above url i have 3 request parameters as below. user=John message=hai&hello recipient=scott Here the problem is with message request parameter's value.because here its value contains ampersend (&). when i try request.getParameter("message") then i get only hai but not hai&hello . How can i solve this issue? Thanks! 回答1: Try this, instead ....&message=hi%26hello.... . I mean, encode it. [Edited]