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.
-t On Mar 31, 2008, at 12:11 PM, Alan Burlison wrote: > Alan Burlison wrote: > >> I need to trim leading and trailing whitespace from some text fields >> before I validate them. I've done this with @Before, but I'm >> wondering >> if there is a nicer 'stripey way' of doing this? > > Actually I haven't, because there's no way of injecting code between > binding and validation. Looks like I'll have to use a custom > converter... > > -- > Alan Burlison > -- > > ---------------------------------------------------------------------- > --- > 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 ------------------------------------------------------------------------- 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
