title: How to create Menu, sub-menu, sub-sub-menu using css and script inside jsp page which picks values from database?
body: <p>I need some solution where i can pick data from database and display as menu--> sub-menu-->sub-sub-menu on jsp page</p>
  
  <p>I have a database table which is as follows:</p>
  
  <pre><code>FIELD-NAME  DATATYPE
  
  Heading         varchar2(50)
  Level1         varchar2(50)
  Level2         varchar2(50)
  Level3         varchar2(50)
  Level4         varchar2(50)
  </code></pre>
  
  <p>which has data respectively. Now i would like to pick that data based on selection and display as menu and sub-menu tab.</p>
  
  <p><strong>For example:</strong></p>
  
  <p>if i select in Heading lets say Menu-1 then it should display respective records of Menu-1 with a query <code>select level1 where heading='Menu-1'</code>.</p>
  
  <p>I have gone through with some websites where the data is static. But i require that it displays dynamically inside jsp page using any script.</p>
  
  <p>Thanks in Advance.</p>