title: How to store temporary data at the client-side and then send it to the server
body: <p>I need to store data temporarily at the client-side to allow users to add, edit or delete items without having to query the server for each of these actions; just when the user finishes adding items and clicks on the <strong>Add</strong> button, the list is sent to the server to be saved permanently.</p>
  
  <p>This <a href="http://img574.imageshack.us/i/details01.png/" rel="noreferrer">image</a> describes what I want to achieve.
  I know I have to use arrays in JavaScript, but I don't know how to create one to store objects (in this case <strong>Detail</strong> which contains :id, price and description).</p>
  
  <p>I hope you can help me out.
  Thanks in advance.
  PS: I'm using JSP and... sorry for my English </p>