title: How to pass two query parameters in URL
body: <p>In this example, the URL for a service has the form <code>/projection/projectionId</code>:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Stateless
  @Path("projection")
  public class ProjectionManager {
  
  @Inject
  private ProjectionDAO projectionDAO;
  
  @Inject
  private UserContext userContext;
  
  @GET
  @Path("{projectionId}")
  @Produces("application/json")
  public String places(@PathParam("projectionId") String projectionId) {
      return projectionDAO.findById(Long.parseLong(projectionId)).getPlaces().toString();
  }}
  </code></pre>
  
  <p>How can I pass two (or more) query parameters to access the service using this code: </p>
  
  <pre class="lang-java prettyprint-override"><code>@PUT
  @Path("/buy")
  public Response buyTicket(@QueryParam("projectionId") String projectionId, @QueryParam("place") String place) {
      Projection projection = projectionDAO.findById(Long.parseLong(projectionId));
      if(projection != null) {
          projectionDAO.buyTicket(projection, userContext.getCurrentUser(), Integer.parseInt(place));
      }
  
      return Response.noContent().build();
  }
  </code></pre>