Hi,
From my
Java application (
JSF 2.0) I am doing a redirect to an external URL which has some credentials as a part of the URL
string. I would like to encode the credential part alone before redirection. My code currently is
The URL generated by this code is
As we can see towards the end of the encoded URL, only the special characters like "/" have been encoded. i.e.
from userid=username/passwd@DBname to userid=%3Dusername%2Fpasswd%40DBname
I want to generate a URL which will have the the entire string "username/passwd@DBname" encoded . Something like :
userid=%63%64Please let me know if there is any way in Java to achieve this