Please don't take my question the wrong way, I'm not trying to start a flame
war here.  I'm just saying the specification says that it's not to set the
attribute on the bean if there is an empty string retrieved from the
request.  

RE: How would you set something to an empty string, then?
Why would you need to set it to an empty string?  Doesn't an empty string
represent no input, just as leaving the attribute to it's initalized value?


I'm just asking if anyone realized that the specification operates
differently and if there are plans to change this implementaiton.  My
conclusion from reading the specification and from seeing the implementation
of BeanUtils.populate() that this method does not operate in the spirit of
the <jsp:setProperty> tag that's built into the JSP specification.  If this
is the case, could we add something in the JavaDoc to indicate it as such?

Thanks,
Steve

-----Original Message-----
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 11:12 AM
To: Jakarta Commons Developers List
Subject: RE: Design question on BeanUtils.populate()


How would you set something to an empty string, then?

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-----
> From: Steve Wilkinson [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, September 25, 2002 12:36 PM
> To: '[EMAIL PROTECTED]'
> Subject: Design question on BeanUtils.populate()
> 
> 
> All,
> 
> In the JSP 1.2 specification there is a reference on page 75 
> in Table JSP.4-2 in section JSP.4.2 about the attributes of 
> <jsp:setProperty>.  "If a parameter has a value of "", the 
> corresponding property is not modified." This is not the way 
> I've seen BeanUtils.populate() work.  I've seen this while 
> using struts 1.1b1, that the empty string is set on the JavaBean.
> 
> Q.  Is this going to be changed?
> Q.  Assuming above answer is no, why?
> 
> Thanks in advance,
> 
> Steve

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to