title: Autocomplete in JSP - Is it possible to querying for every typing instead of having all list on script in advance?
body: <p>I understand autocomplete works like bellow:</p>
  
  <ol>
  <li>Get all list on script in advance</li>
  <li>Search item every time the input text changes</li>
  </ol>
  
  <p>I don't like how this works, because the whole list exist on script so anyone can see the list using web browser's Dev Tool.</p>
  
  <p>I'm wondering if there's a way to querying for every typing instead of having all list on script in advance.</p>
  
  <p>Here's how I expect it to work:</p>
  
  <ol>
  <li>Query every time the input text changes</li>
  <li>Get the result on script.</li>
  </ol>
  
  <p>It does not matter if the queries slow down the web site, </p>
  
  <p>because the list would be not that large and security is more important here.</p>
  
  <p>Any comments will be appreciated. Thanks.</p>