Well, I finally figured out a solution to this problem outlined below. Thought
I would share it with the group in case someone else runs into this same
problem.
The problem is somewhere between the Jakarta Commons BeanUtils in conjunction with a
LazyValidatorForm. Since the LazyValidatorForm
Here is a snippet from my initializing action before it goes to the form
view:
...
LazyValidatorForm ppForm = (LazyValidatorForm)form;
ProtectedPersonLocal ppl = null;
ProtectedPersonDTO dto = null;
String sid = null;
sid = request.getParameter("sid");
Please provide more information. How is your form configured/written?
Are there "initial" values? What is the type of the data from which
you're copying a value?
Hubert
On 5/20/05, Randy Kennedy <[EMAIL PROTECTED]> wrote:
> Why does an object reference (e.g. [EMAIL PROTECTED]) show up in
> my
If your Database values are null then the corresponding Object should be
null and not an Object Reference.
Make sure when you read a ResultSet you call
Integer column = null;
int tmpColumn = results.getInteger("COLUMN");
if(!results.wasNull()) {
// I think it is wasNull(). You don't need
Did you observe any odd behavior when you started the debugger and stepped
through the source for BeanUtils.copyProperties(Object dest, Object orig)?
Randy Kennedy <[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTECTED]>
05/20/2005 08:20 AM
Please respond to
"Struts Users Mailing List"
To
user@
5 matches
Mail list logo