Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To Create A dynamic Drop Down List using Struts Tag Libraires.

 
SmiR Raj
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a list of names in the ApplicationResources.properties file. Can I use any Struts Tag to iterate the property file and retreive the values.
Example I have
label.name1 = norcal
label.name2 = Phoenix

Is there any way by which I can have a dynamic list box which has the two values "norcal" and "phoneix". If i add a third value "Seattle" the list box should be populated without any change in the jsp.

Can I do this without setting any request or session Attributes?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For property file clarification see you other thread
http://www.coderanch.com/forums/.

As far as dynamic listbox is concerned. Yes you can do that. Just add one more element in your collection. It will show up all during iteration.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65221
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to Struts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic