wood burning stoves 2.0*
The moose likes Struts and the fly likes twovalues in a labelProperties field of the options tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "twovalues in a labelProperties field of the options tag" Watch "twovalues in a labelProperties field of the options tag" New topic
Author

twovalues in a labelProperties field of the options tag

rouven bee
Greenhorn

Joined: Nov 03, 2004
Posts: 1
how can i give my labelProperty many labels? thx for your help!

<html:select property="kolleg">
<html ptions collection="users" property="userId" labelProperty='"name","firsname"'/> //doesn't work :-)
</html:select>
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
I'm pretty sure you may only specify one value for labelProperty.

Here's a way to get around it:

[ November 03, 2004: Message edited by: Ray Stojonic ]
 
 
subject: twovalues in a labelProperties field of the options tag
 
Similar Threads
How to retrieve property and labelProperty info from action class
html:options values getting appended
Validation of Html options
"No name specified" - html:select and html:options
mapping between JSP n form