title: What URL should I use in $.ajax() in order to submit a form
body: <p>Working in JSF2 and ajax, i can't figure out what's the value of the $.ajax URL attribute in JSF context as i want to submit a form and update a div staying in the same page</p>
  
  <p>Is it the following?</p>
  
  <pre><code>((HttpServletRequest) facesContext.getExternalContext().getRequest()).getContextPath()`
  </code></pre>