users@jersey.java.net

[Jersey] Getting FormsParams in MultivaluedMap

From: <gregor.karl.frey_at_t-online.de>
Date: Wed, 19 Oct 2011 06:35:44 +0000 (GMT)

Hi,
I'm struggling to get somehow the forms parameter as a multivalued map
in a post request. The procedure described in the users guide doesn't
work, at least not for me:

"For form parameters it is possible to do the following:

Example 2.19. Obtaining general map of form parameters

  1 @POST
  2 @Consumes("application/x-www-form-urlencoded")
  3 public void post(MultivaluedMap<String, String> formParams) {
  4 // Store the message
  5 }
"

Is this description correct? No annotation for the formParams?
When I try this the map is always empty ;-)
Thanks for any suggestions!
Gregor