users@jsr311.java.net

QueryParam

From: Dianne Jiao <Dianne.Jiao_at_Sun.COM>
Date: Fri, 28 Mar 2008 20:50:03 -0400

Hi, Marc,

I ran into a dilemma today regarding QueryParam.

If I have more than one query string in request:

http://host:port/path?t=1&s=2

Then I have two corresponding HttpMethod:

@GET
public String query1(@QueryParam("t") int i) { ...}

@GET
public String query2(@QueryParam("s") int j) { ...}

Then the dilemma or question:
which HttpMethod this request invoke?

Thanks.

Dianne