I have a URL like
www.abc.com/;jsessionid=53AA662D24A89922031913A6E85A005B
(sorry i can't specify my actual site name here, so using abc.com
)
When the above url is hit, i want to strip ;jsessionid=53AA662D24A89922031913A6E85A005B
from the above url in the back-end (in my servlet) and redirect to the actual url (in this example http://www.abc.com/
).
I have tried many ways in my servlet to know whether the requested URL has 'jsessionid' or not, but I can't find a method that returns the full requested URL on HTTP request object
I have tried the following methods on the HTTP request object
getRequestURI()
getRequestURL()
getContextPath()
getPathInfo()
but they are not returning the full requested url with the jsessionid
.
I have tried getParameter()
, getParameterNames()
but no help as the above url doesn't have ?
before jsessionid
.