title: onClick function call using scriptlet
body: <p>I want to use scriptlet to write the function called when clicking the Execute Test button This code didn't work :</p>
  
  <p>Here's my jsp code :</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  pageEncoding="ISO-8859-1"%&gt;
   &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd"&gt;
    &lt;html&gt;
   &lt;head&gt;
   &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
  
  &lt;html:file properties="tonFichier" name="tonForm"/&gt;
  &lt;%!
  
   public void executeTest() {
  
    java.util.Date d = new java.util.Date();
    System.out.println(d.toString()); } 
  
   %&gt;
  
   &lt;form enctype="multipart/form-data" method="get"&gt;
  
  
    &lt;div&gt;
    &lt;input type="submit" value="Execute Test" onclick="executeTest()" &gt;
  
    &lt;/div&gt;
     &lt;/form&gt;
    &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>
  
  <p>Any help please 
  Cheers </p>