title: How to create dependent drop downs in excel sheet generated using POI?
body: <p>we have a function in our java based web application where user can download an excel sheet template from the web application. Fill their data in this template and then upload the same excel sheet. </p>
  
  <p>The system then reads this excel file and save this data in the database. </p>
  
  <p>Below is snapshot of template file with some sample data in it. </p>
  
  <p>What I want is when users download template file (template file usually just has the headers, so users know which data goes in which column), excel sheet should have drop downs for Division, Product, secondary product , Region and country. So that users do not enter any invalid values in those columns. </p>
  
  <p>As well, products varies according to divisions and secondary product varies according to products. Its more like dependent drop downs. </p>
  
  <p>Basically I will need to create the excel sheet using Apache POI in which users will chose values from the drop dowsn instead of typing it themselevs.</p>
  
  <p>Even though we do have server side validation where we check if the values entered by users are valid or not. </p>
  
  <p>The reason we wnat to do this is that e.g. some users might enter country as US, some as USA and some as United states. </p>
  
  <p>The same thing goes for products etc. user may enter product as GFFX or GFFX Structuring or gffx etc.  </p>
  
  <p>Is it possible to do this in excel sheet using POI? If not what are the other possible solutions or wasy to make sure users know what they have to enter in each columns?</p>
  
  <p><strong>EDIT 1 :</strong></p>
  
  <p>I could created the drop downs but is it possible to created the dependent drop downs?</p>
  
  <p><img src="https://i.stack.imgur.com/xfI3h.gif" alt="enter image description here"></p>