File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
question on struts html:optionsCollection
Joined: Jul 10, 2003
Aug 06, 2004 12:27:00
In a html:select tag I have a collection to display where I display User names for selection from the
<html :-o ptionsCollection name="USER_CONTEXT" property="users" label="name" value="id" />[B]label[/B][
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.
author & internet detective
Joined: May 26, 2003
Aug 06, 2004 18:15:00
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
How To Ask Questions The Smart Way
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: question on struts html:optionsCollection
Help Clean up This Code
Display data from database to jsp page.
Struts2: Is there any other ajax theme available for <s:div theme="ajax"> tag?
Simple method program
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015