users@jersey.java.net

Help With Matrix Parameter Problem

From: Hien Luu <hluu_at_yahoo.com>
Date: Mon, 8 Oct 2007 16:39:11 -0700 (PDT)

I am trying to use the MatrixParam annotation to grab the value out of a matrix parameter, but just doesn't work for me. I must be missing something. Here is my resource class: @UriTemplate("/users") public class UsersResource { public UsersResource() { } @HttpMethod public String getUsers(@MatrixParam("fn") String firstName) { return "first-name: '" + firstName + "'"; } } When I tried http://host:8080/jersey/users;fn=Mike and I am expecting "first-name: 'Mike'", but kept getting "first-name: 'null'". Thanks in advance, Hien