• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

please give me the solution for LabelValueBean problem

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic