Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

input box maxlength vs size and CSS

800409Jun 3 2005 — edited Jun 3 2005
In my application a large number of the screens are actually generated by one JSP. This JSP iterates through an object that was populated from either a database or XML file depending on some settings... when it builds it it sets the size and maxlength based on the picture of the field (X15) for instance.

The problem I'm having is that when it displays on the screen if the size and maxlength are both set to 15 the field will accept 15 characters, but the size seems to be too small... only 13 or so characters can be seen.

I've read that this deals with the font type and size...

To make this work I've had to make the maxlength larger then the size by an increasing amount based on the maxlength.

does anyone know anything about this and can suggest a fix for this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2005
Added on Jun 3 2005
8 comments
223 views