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

question on struts html:optionsCollection

 
Yash Duddela
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In a html:select tag I have a collection to display where I display User names for selection from the label



which displays user names like BLUE,ORANGE,GREEN I want to include in the dispaly even the code. Is there a way to concat two attributes in the label
name+"-"+id output being BLUE-001B

Any help is appreciated.

Thanks
Summu
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Summu,
I'm not sure if this is the best way, but I have my object (like USER_CONTEXT), concatenate in the get method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic