title: Get the URL of current XHTML page which has user data filled in the form into the JSF Managed bean
body: <p>I am working with creating PDF from XHTML with JSF 2.0 and iText. The page is simple registration form. When User enters all the data in the page and click on submit I have to get the whole HTML page source with user entered values into the bean. I used Jsoup to get the HTML but I got only HTML source not the values entered by the user.How can I do this?</p>
  
  <p>My current code is </p>
  
  <pre><code>        FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext externalContext = facesContext.getExternalContext();
          HttpSession session = (HttpSession) externalContext.getSession(true);
          String url = "http://localhost:8080/Pro/faces/part1.xhtml;JSESSIONID=" + session.getId();
          try {
          Document doc = Jsoup.connect(url).get();
  </code></pre>