I'm not exactly sure if this is an html question, or
servlet question, but I'll try here first. Basically, I have a combo box that displays a name and user id. The name is variable length, so what I am trying to do is pad out the
string so that user name + padding is set to some arbitrary length, and then the id is added so that there are two aligned columns.
I am using a loop in a servlet to generate the code, and the data is being pulled from MySql:
When I view the source of the generated html, everything is padded as I want, but the spaces are being consumed. I have tried enclosing the name in quotes; I can't think of anything else to try. I have checked both IE and Firefox to see if it was an issue with one or the other, and that doesn't seem to be the case. Any ideas on which direction I should be heading?
EDIT: I guess it would maybe be more proper to call this a drop-down list.
[ January 08, 2007: Message edited by: Chad Clites ]