How to avoid encoding the key of request parameters being encoding
- by fxp
I'm trying to send a http request using WS.url() with a action receive a custom class parameter like
public static void add(@Valid MyPage info) {...}
There is a Map in MyPage
@Required
public Map<String, String> content = new HashMap<String, String>();
But When I try to send a request with
WS.url().setParameter("info.content[name]","mynameis");
The action got no parameter and request's querystring convert info.content[name] into ...%5Bname%5D...
I checked the WS.createQueryString and found it will encode all key and value. Any way to avoid that?