title: call a jsp method from javascript
body: <p>I use a method in jsp page like this and the page is saved in the name of new.jsp</p>
  
  <pre><code>&lt;%!
      public void createXml(String graph) throws Exception
      {
          try
          {
              String str="dinesh"
  
              DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
              DocumentBuilder docBuilder = builderFactory.newDocumentBuilder();
              Document doc = docBuilder.newDocument();
          }
  
          catch(Exception e)
          {
              System.out.println(e);
          }
      }
  %&gt;
  </code></pre>
  
  <p>If i call this page like this</p>
  
  <pre><code>&lt;form method="post" action="new.jsp"&gt;
  </code></pre>
  
  <p>But, I want to call this method of createXml only using javascript or jquery coding because i am going add various method in the new.jsp. Any one help this to call method without calling the whole jsp page</p>