I need to implement a URL which looks something like below one. The Notable thing is that its only one parameter i need to access and the value that's supposed to be held by the parameter is encrypted which may contains characters like & and =.
Example 1.
www.abc.com/disp?v=qww78agd=
The parameter v in above url contains value
qww78agd=.
Supposing the encryption turns out the following way.
Example 2.
www.abc.com/disp?
v=qww7&
f=iuy68=
www.abc.com/disp?
v=qww7&
f==iuy68=
Then
servlet will take
v and
f as two separate parameters, whereas i want to obatain
qww7&f==iuy68= from parameter.
I thought of taking up all key value pairs from request HashMap and concatenating the joints via & and =. But the problem is that two consecutive = signs as in second case of example 2, its treated as only one equal to in request key,value map. Hence, my other = sign(s) are lost.
Is there any way such that i can get query
string part as it is on my servlet and parse it using string processing on my own?
or any other approach?