aspose file tools*
The moose likes Struts and the fly likes insering variable into a html:select label Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "insering variable into a html:select label" Watch "insering variable into a html:select label" New topic

insering variable into a html:select label

Klament J. Kruoghst
Ranch Hand

Joined: Oct 24, 2008
Posts: 35
Hi there, here's my situation:

I want to be able to combine 2 values into the label for optionsCollection. I saw somewhere that the way to declare the variables is using bean:define as below, so I did that.. but that's not working correctly:

Any ideas how I can modify my selection? also I'm not sure the iteration on optionsCollection would pick the new labels up.. what else can I do.

I get a "cannot resolve symbol" for variable mylabel1...

Thanks in advance
ajay solanki
Ranch Hand

Joined: Feb 25, 2008
Posts: 37
Hi Klament,

Did you find any solution to this? I also have same situation.

I agree. Here's the link:
subject: insering variable into a html:select label
Similar Threads
Default selected value in optionsCollection
optionsCollection issue with DynaValidatorForm
Facing a problem with <html : optionsCollection> tag
Stuck with optionsCollection Tag
Problem passing parameter with optionsCollection