I want to set the selcted value of option based on an attribute
posted 10 years ago
I have as many select Lists(myList) on Jsp as in exampleData(an arrayList). I want to set the selected option of myList based on the first Character of a requestAttribute ("defaultType"). Can anyone please show me how to do this.
can i set an id for select List to uniquely identify the lists. I also need to get (based on the selected value)BOT,AbrnCode,AreaNum for each of the selects into say a botBean. I am planning to store the values of the myList in a String changedValues = request.getParameterValues("myList"); Please suggest if this is right approach.