I have a web application a JSP page that has two drop down boxes with following labels:
Drop down box 1: Choice1
Drop down box 2: ChoiceA
Currently I have hard coded these in the JSP page. I need to be able to do this more generically such that latter when more choices need to be added the user should not have the need to go and make changes in the JSP page but in some other external file from where these needs to be read and populeted in the two drop down boxes. How do i do this using server side implementation.
When the page loads the above options appear in the drop down box.
But when, the user selects Choice1 from Drop down box 1, I want to be able to present the user with ChoiceA OR ChoiceB in the drop down box2. Similarly If the user selects Choice2 from the Drop down box 1, I need to be able to present ChoiceC OR ChoiceD.
How do i do this on the server side.A code to achieve both would be appreciated.