Hi Alan,

I haven't tried, but how about this one?
http://www.nabble.com/trim-strings-td11805823.html#a11810559

It might be a little bit hackish, though.

Regards,
Iwao

on 08.4.1 6:38 AM Alan Burlison said the following:
> Tim Fennell wrote:
> 
>> Is this something you want to do globally?  If so you might want to  
>> just do it in a request wrapper that overrides getParameter() and  
>> getParameterValues() to return trimmed versions.
> 
> No, on a per-field basis.  The example case is a user-entered username, 
> which needs to be have more than a minimum and less than a maximum 
> number of character, excluding any (probably mistakenly entered) leading 
> and trailing whitespace.




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to