I have a URL with a '?' symbol in it, which I wanted to map to different url using sendRedirect in a servlet. When I give the url with '?' symbol in url-pattern tag of a servlet-mapping it doesn't take it. Does the symbol has a different meaning like as in regex? Please let me know how to solve this problem.