struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <>
Subject Re: trimming fields in bean and html tags
Date Wed, 26 Mar 2003 18:23:21 GMT
You should trim the spaces in an Action before populating the form fields.


>From: John.E.Gregg@mortgage.wellsFargo.COM
>Reply-To: "Struts Users Mailing List" <>
>Subject: trimming fields in bean and html tags
>Date: Wed, 26 Mar 2003 12:18:18 -0600
>Hi all,
>I'm forced to live with a db where many columns are chars instead of
>varchars.  In cases where the contents of the char column doesn't fill the
>space allowed, I get my result padded with spaces.  The practical problem
>that this introduces is that if I want to use the validator to enforce
>length restrictions (where the max length is the db column width), a user
>can't just put his cursor at the end of the visible text and start typing
>because of all the spaces.  I was hoping for a way to specify in bean:write
>and html:text to trim any extra spaces but see no such option.  Any
>john gregg
>Wells Fargo Services Company
>Minneapolis, MN

Tired of spam? Get advanced junk mail protection with MSN 8.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message