struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
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.

David



>From: John.E.Gregg@mortgage.wellsFargo.COM
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>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
>suggestions?
>
>thanks
>
>john
>
>
>john gregg
>Wells Fargo Services Company
>Minneapolis, MN
>


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message