Re: Automatic trimming

2007-06-19 Thread Jeromy Evans
Is there any way to automatically trim data from textfields etc? I don't believe so, but in S2 you could write a converter or an interceptor to do it for you. In both cases you'll have to come up with a convention that determines when trimming is applied. http://struts.apache.org/2.x/docs/t

Automatic trimming

2007-06-18 Thread David Harland
If you are setting trim=true in a stringlength validation you obviously want the data that is passed to the database to be the data you have validated, not the data plus the spaces removed during validation which is what is happening. Is there any way to automatically trim data from textfields etc