Skip to main content

@QueryParam Not Reading Query String

No replies
Joined: 2007-12-10

I'm not sure if this is the right place to post this but I am trying to invoke a REST API calling an EJB method but it is not reading in the query parameter.

public JSONArray getCommunitiesAsJsonArray(@QueryParam("token")
@DefaultValue("") String token, @QueryParam("communityGroupId")
@DefaultValue("0") Integer communityGroupId)

My http request on the browser is http://:/SupportNet/resources/communities?token=OUNci@RA@p#0hTKu%PIGyy&c...

When I debug, even with the @DefaultValue annotation, it token is null and communityGroupId is 0. What am I missing?