I am trying to get parameters from an URL in my JSF application. The URL as following: http://localhost:8088/*******/pages/rh/evaluation/layouts/evaluationLayout.jsf?crt_affectId=RqI+dgtx6q8=
So here the parameter is crt_affectId
and its value is RqI+dgtx6q8=
.
When I try to get the value by using the following code:
String cryptedValue = FacesContext.getCurrentInstance().getExternalContext()
.getRequestParameterValuesMap().get(cryptedKey)[0];
I get the wanted value but missing the character +
as it is replaced by a blank space as . the result value is as following:
RqI dgtx6q8=
.
Is there a solution in JSF to get the complete value or a should I just replace the blank space by the "+"? However this latter is not that generic and good way neither.