Not all whitespace is unwanted (just ask a Python geek) so to trim away all whitespace
out of fields would be a most unwise thing for the action forms to do. Such behaviour
should be restricted to your interface objects (those objects from your system that
directly communicate with Struts)
Subject: RE: Is there a reason Struts doesn't trim incoming values?
Not all whitespace is unwanted (just ask a Python geek) so to trim away all
whitespace out of fields would be a most unwise thing for the action forms
to do. Such behaviour should be restricted to your interface objects (those
modifications to my data.
Simon
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Is there a reason Struts doesn't trim incoming values?
I'm just trimming leading and trailing whitespace though
: Wednesday, June 18, 2003 10:48 AM
To: Struts Users Mailing List
Subject: RE: Is there a reason Struts doesn't trim incoming values?
Matt,
The only example that I can think of is a password field. On most operating
systems (and especially Unix ones) a space is a valid password character
4 matches
Mail list logo