This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes please give me the solution for LabelValueBean problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "please give me the solution for LabelValueBean problem" Watch "please give me the solution for LabelValueBean problem" New topic
Author

please give me the solution for LabelValueBean problem

Anilkumar Ravinuthala
Greenhorn

Joined: Jan 17, 2007
Posts: 17
Here i am facing a problem with spaces.
in an array i am adding one instance of LabelValueBean with two strings as parameters.
String description = "SD (with more spaces ) 123";
colInSession.add(new LabelValueBean(description,description) );

in my jsp i am displaying it with

<html:select name="objsList" property="associatedDescription" indexed="true" >
<html ptions collection="colInSession" property="value" labelProperty="label" />
</html:select>

but the spaces which i have given in the string 'description' is not coming in the dropdown with the spaces which i mentioned in while constructing a string.
in dropdown it is like --> SD 123
with single space.
please help!
please
[ April 21, 2008: Message edited by: Anilkumar Ravinuthala ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please give me the solution for LabelValueBean problem
 
Similar Threads
Validation of Html options
LabelValueBean in struts
Error while Populating html:options with validations!!
populating list boxes in forms - help required
How to use html:options