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

As noted further along by Ben in that thread, you can modify the values in the
map (but not the map itself). Gregg also suggested another solution: use
JavaScript to trim the input in the form before it is submitted.

In the past I've used a simple Filter with an HttpServletRequestWrapper. Like
Tim said, this is for when you want to trim ALL input parameters. This is
strictly Servlet API, nothing Stripes-specific.

Alan, your best bet is likely to use a @Before BindingAndValidation method to
go trim the value associated with your username parameter in the request
parameter map.

Cheers,
Freddy



-------------------------------------------------------------------------
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