title: jquery validation engine : ajax field validation with java (not with php)
body: <p>I try to validate a field with ajax and a function which verify that the value is not already in base.</p>
  
  <p>All examples I found are with php ; how to do with java ?</p>
  
  <p><strong>JSP code :</strong></p>
  
  <pre><code>&lt;form id="FLoginNew" action="Loginnew" method="post"&gt;
  .....
  &lt;script&gt;
  $(document).ready(function(e) {
      $("#FLoginNew").validationEngine('attach', {promptPosition : "centerRight", scroll: false, validationEventTrigger: "blur", autoHidePrompt:true, autoHideDelay:3000 });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>jquery.ValidationEngine-fr.js altered :</strong></p>
  
  <pre><code>"ajaxLoginCall": {
                  "url": "myapp.selvlets.DoublonLoginServlet",
                  "extraDataDynamic": ['#login'],
                  "alertText": "* Ce login est déjà pris",
                  "alertTextOk": "* Ce login est disponible",
                  "alertTextLoad": "* Chargement, veuillez attendre"
              },
  </code></pre>
  
  <p>As URL, I tried : <code>"url": "/DoublonLogin",</code> which is the declaration of the servlet mapping in web.xml.</p>