Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I want to set the selcted value of option based on an attribute  RSS feed

 
Preetha Shenoy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!