This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Preetha Shenoy
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