title: calling java methods in javascript code
body: <p>i created a java class content method return a String, my question is how to call this function in my javascript code to use the returned value from the java method. I want to call client-side Java code embedded in browser.</p>
  
  <p>here is an exemple of what im talking about:</p>
  
  <p>in my webpage i have a javascript code, here is some of it:</p>
  
  <pre><code>    function createChartControl(htmlDiv1)
  {
      // Initialize Gantt data structures
      //project 1
      var parentTask1 = new GanttTaskInfo(1, "Old code review", new Date(2010, 5, 11), 208, 50, "");
  ......................
  </code></pre>
  
  <p>i want to create a java class content methods to provide data to this javascript function "GanttTaskInfo".
  for exemple function to get name, get id and date.
  well i think this time im clear :D
  i searched a way to call java methods in javascript, and i found applets as you said, but i think its not usefull to me.
  thanks again</p>