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) where you are free to make value judgements on 
whitespace.

Simon

-----------------------------------------------------------------
Simon P. Chappell                     [EMAIL PROTECTED]
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526

"Never give in - never, never, never, never, in nothing great or
small, large or petty, never give in except to convictions of
honor and good sense." - Sir Winston Churchill


>-----Original Message-----
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 11: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 be an added 
>feature to
>Struts.  Or should I create a custom StringConverter that 
>trims and Struts'
>BeanUtils.copyProperties will use this?
>
>Thanks,
>
>Matt
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to