I am trying to redirect user to a page when a condition is satified
String strUrl="ChangeUserPassword.jsp?strInfo=" + "UserID:"+strUserId+" does not exist";
System.out.println(strUrl);
response.sendRedirect(strUrl);
The url is printing fine on console
==========
ChangeUserPassword.jsp?strInfo=UserID:atisahy does not exist
==========
but when it is redirected all capital letters get changed in lower case. the url the browser get redirected to is.
=========
"http://localhost:8080/INFBKGR3/changeuserpassword.jsp?strinfo=userid:?strInfo=UserID:atisahy%20does%20not%20exist"
==========
why is this happening
String strUrl="ChangeUserPassword.jsp?strInfo=" + "UserID:"+strUserId+" does not exist";
System.out.println(strUrl);
response.sendRedirect(strUrl);
The url is printing fine on console
==========
ChangeUserPassword.jsp?strInfo=UserID:atisahy does not exist
==========
but when it is redirected all capital letters get changed in lower case. the url the browser get redirected to is.
=========
"http://localhost:8080/INFBKGR3/changeuserpassword.jsp?strinfo=userid:?strInfo=UserID:atisahy%20does%20not%20exist"
==========
why is this happening