title: How to get parameters from GET request?
body: <p>I can't retrieve the values from a request.</p>
  
  <p>Servlet:</p>
  
  <pre><code>protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      String location_id = request.getReader().readLine(); // &lt;---- null
      location_id = request.getParameter("location_id"); // &lt;--- null
      PrintWriter out = response.getWriter();
      out.write(this.get_events_json(location_id));
  }
  </code></pre>
  
  <p>On the client-side:</p>
  
  <pre><code>$.get("EventServe", {location_id : location_id}).done(function() {
      var events = JSON.parse(responseText);
      outer_this.events = events.map(function(event){
          var event = new Event(event.address, event.name, event.event_start, event.event_end)
          return event;
      });
      outer_this.events.map(function(event){outer_this.insert_event(event)});
  });
  </code></pre>
  
  <p>I've also tried to pass it in directly without jQuery, using only literals.</p>