-1

How split and print all the parameters inside the QueryString() and pass to enumeration.

Example: www.xyz.com/page1/a=1&b=2&c=3&d=4.

QueryString is here: a=1&b=2&c=3&d=4merat

I want like this a=1, b=2, c=3. We can use req.getParameters also.But problem is the QueryString parameters are encoded. So i need to split these parameters only.

If u know pls let me know. Thanks in Advance.

Shrikant

Michael Laffargue
  • 10,116
  • 6
  • 42
  • 76
ssangadi276
  • 159
  • 2
  • 3
  • 8

1 Answers1

0

You could use URLEncodedUtils.parse(String, Charset) from HTTPClient

Returns a list of NameValuePairs as parsed from the given string using the given character encoding.

Francisco Spaeth
  • 23,493
  • 7
  • 67
  • 106