title: how to send an array in url request
body: <p>My requirement is as follows:</p>
  
  <p>I want to give actor name, start date, end date and get all the films he acted in that period. </p>
  
  <p>For that reason, my service request is like this. </p>
  
  <pre><code>  http://localhost:8080/MovieDB/GetJson?name=Actor&amp;startDate=20120101&amp;endDate=20120505
  </code></pre>
  
  <p>Now, i want to improve it.
  I want to give a start date, end date and more than one actor name and want to see all those actors movies in that period.</p>
  
  <p>I am not sure how should my url look to support such thing.</p>
  
  <p>I am writing a java based web service using spring.</p>
  
  <p>Below code is to support one actor</p>
  
  <pre><code>   @RequestMapping(value = "/GetJson", method = RequestMethod.GET) 
      public void getJson(@RequestParam("name") String ticker, @RequestParam("startDate") String startDate, @RequestParam("endDate") String endDate) {
     //code to get results from db for those params.
   }
  </code></pre>
  
  <p>One solution i am thinking is using a % symbol to seperate actor names. For example:</p>
  
  <pre><code> http://localhost:8080/MovieDB/GetJson?name=Actor1%Actor2%Actor3&amp;startDate=20120101&amp;endDate=20120505
  </code></pre>
  
  <p>Now, in the controller i will parse the name string with % and get back all actors names.</p>
  
  <p>Is this a good way to do this or is there a standard approach?</p>
  
  <p>Thanks</p>