Meaningless Drivel is fun!
The moose likes Struts and the fly likes question on struts html:optionsCollection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "question on struts html:optionsCollection " Watch "question on struts html:optionsCollection " New topic

question on struts html:optionsCollection

Yash Duddela

Joined: Jul 10, 2003
Posts: 4

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.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33108

I'm not sure if this is the best way, but I have my object (like USER_CONTEXT), concatenate in the get method.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: question on struts html:optionsCollection
It's not a secret anymore!