Reply To: Problems with enconded slashs inside param values

Splash Forums Rewrite Users Problems with enconded slashs inside param values Reply To: Problems with enconded slashs inside param values

#25892

ravindra
Participant

Hi

Please find following peace of code,

we have to escape the special character using URLEncoder.

String str=test/slash
str= StringUtils.replaceEach(str, new String[]{“/”},new String[]{“%2F”);
str=URLEncoder.encode(str , “UTF-8”);

http://localhost:8080/rewrite-slash/page.jsf?data=str

Hope this solution will work for your requirement.