On Fri, Jan 26, 2001 at 01:47:15PM -0500, Jason van Zyl wrote:
> Hi,
> 
> Does anyone object to having the pp.setProperties(object)
> method trim string values?
> 
> Right now I want to trim username and password entries
> that are being placed in forms to make sure it doesn't
> cause accidental login problems and I don't want
> to have to manually trim the strings, I would like it
> to be done automatically.

By trim I you mean take off leading and trailing whitespace?

If so, then I'm +1 - but would prefer it if getString did it rather than
setProperties. The design principle behind setProperties is it should
behave exactly like an explicit list of
bean.setXXX(params.getXXX("paramname")) statements. I wouldn't like to
see setProperties doing any magic that wasn't done by the equivalent
getXXX method of ParameterParser.

Sean

-- 
Sean Legassick
[EMAIL PROTECTED]
      Je suis un homme: rien d'humain en m'est étranger  
      
      


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to