title: gwt - servlet path + url
body: <p>I need to read data from an xml file that is under the WAR directory.<br>
  I'm using <code>RequestBuilder</code> for creating the <code>GET</code> request.
  It looks like this:</p>
  
  <pre><code>   RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,"customerRecord.xml");  
     try {  
          requestBuilder.sendRequest(null, new RequestCallback() {  
              public void onError(Request request, Throwable exception) {  
                  requestFailed(exception);  
              }  
              public void onResponseReceived(Request request,Response   response) {  
                  renderXML(response.getText());  
              }  
          });  
      } catch (RequestException ex) {  
          requestFailed(ex);  
      }   
  </code></pre>
  
  <p>Now, the thing is that I don't want to load all of the data. I want to send a parameter that   tells the server which part to bring, (let's say - how many lines of data) and then override the doGet method of the servlet and deal with the parameter.<br>
  I have 2 questions:<br>
  1) how do I declare the path of the servlet? where is the connection between the servlet and the request??<br>
  2) What do I write in the url of the <code>RequestBuilder</code> (instead of "customerRecord.xml")?  do I need to refer to the servlet there or I can keep it like </p>