On my site I’m using the following URL: http://example.com/test%2Ftest2.htm
When I print getServletPath in my HandlerInterceptorAdapter I see de decoded servletPath: /test/test2.htm. How do I get the not-decoded string? Like: /test/test2&2Ftest2.htm
On my site I’m using the following URL: http://example.com/test%2Ftest2.htm When I print getServletPath in
Share
I came up with the following solution, the key is to make a new URL object.
This returns the desired non-decoded string.