1 Reply Latest reply: Oct 18, 2006 6:35 AM by 800322 RSS

    Help-How to display data from db on selecting item from drop down list

      i have the following code in JSP file
      <script language="javascript">
      function validate()


      function display()
      var item=(document.f1.timing.options[document.f1.timing.selectedIndex].text);
      alert (item);

      Display function gives selected item from drop down list. I require item variable to display corresponding data from database
      if i write statement <% out.print(item)%> item can not be accessible.
      why? how to access it in java?