Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Raible, Matt
I've recently found it necessary to use StringUtils.trim(value) on all my ActionForm.set() methods. While this is easy for me b/c I use XDoclet to generate my ActionForms, I'm wondering if this can be an added feature to Struts. Or should I create a custom StringConverter that trims and Struts'

RE: Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Chappell, Simon P
:28 AM To: '[EMAIL PROTECTED]' Subject: Is there a reason Struts doesn't trim incoming values? I've recently found it necessary to use StringUtils.trim(value) on all my ActionForm.set() methods. While this is easy for me b/c I use XDoclet to generate my ActionForms, I'm wondering if this can

RE: Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Raible, Matt
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

RE: Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Chappell, Simon P
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

RE: Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Raible, Matt
: 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