This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes How add a space between words in struts html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How add a space between words in struts html:select" Watch "How add a space between words in struts html:select" New topic
Author

How add a space between words in struts html:select

Phanindra varma
Greenhorn

Joined: Jul 29, 2005
Posts: 14
Hi All,

I wanted to add a spaces betwwen words in <html:select>. I have the following company and company description those need to display in <html:select>.
Ex :
CompanyName CompanyDescription
The above two need to display in <html:select> and need to put space also. I have done this. I added space betwwen two in the bean and displaying in the <html:seleect> but When I have more than ten companies and ten company descriptions the alignment is not coming properly because I am using the combination of Arial, Verdana, Helvetica in CSS. One   is not equal to one character when using the above fonts. So When I am using the above fonts the alignment is not coming properly. If I use Courier New the alignment is coming properly because in Courier New one   is equal to one character. but I have to use the combination of Arial, Verdana, Helvetica. So please anybody give me the help its very urgent to our project and need to give the delivery ASAP.

Thanks in Advance....
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Sorry, but I don't think there's a way to do this. As I see it, you have a choice between using a non-proportional font like Courier New, or just dealing with the fact that things are not going to line up the way you want.

If you figure out a way to do it, let us know.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How add a space between words in struts html:select