title: how to check if username exists in angularjs
body: <p>All the username and password details are present in oracle DB. I am using servlets and jsp as backend. When user name is registered through a java servlet, it sits in oracle db.</p>
  
  <p>Now I want to check if existing username is already available. I know its like making ajax call to fetch the info but what do I pass as URL? Shall I pass a url pattern of a servlet (example: <code>url:'./getRecords'</code>) ? or is there any other way of doing it?</p>
  
  <p>Also using back end as servlet and jsp a good idea? I wonder why people use node js and mondo DB with angular js. </p>