title: jsp function call and xml
body: <p>i need to know the way for call a function in jsp?</p>
  
  <p>in my function, i wrote a code for get user input and write it in xml file... when i call it, there is a error... how could i achieve this.?</p>
  
  <pre><code>&lt;form method = "post" action="Result.jsp" &gt;
  &lt;input type="submit" name="submit" value="Submit" onclick="writeXml()"/&gt;
  </code></pre>