Hi Oliver,

I see what you mean. Looks like a design floor on my part. I don't wish to
put the forms in the session scope as I already have the ValueObjects there.
I'll try using the PropertyUtils.copyProperties stuff to transfer back and
forth. 

Thanks for the clarification

Jon.

-----Original Message-----
From: Oliver Reflé [mailto:[EMAIL PROTECTED]] 
Sent: 02 April 2002 16:15
To: Struts Users Mailing List
Subject: RE: BeanUtils/RequestUtils Populate question

But on the other side, if you have set the request scope for you form,
than the values are set in the preparing action, it is transformed to your
jsp and the form on the jsp is filled. then the form object will be deleted
cause it was only in the request. So if you submit your form then a new
form object is created which will be filled with the entered values.

So he is not able to transfer the data between the two form beans.
You have to store the missing data manually for using it in the next
request.

-----Original Message-----
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 5:08 PM
To: 'Struts Users Mailing List'
Subject: RE: BeanUtils/RequestUtils Populate question


Hi Oliver,

I don't. If I have a value object in a form bean and I and only wish to
alter a couple of its properties how can I do it. It would appear that
Struts will set any fields not referenced to null. If a property of the
valueObject returns a complex type ie a Map then I can't use the html:hidden
work round I'm currently using; so I just have to except that I'll loose my
map. Not very acceptable.

Jon.

-----Original Message-----
From: Oliver Reflé [mailto:[EMAIL PROTECTED]]
Sent: 02 April 2002 15:47
To: Struts Users Mailing List
Subject: RE: BeanUtils/RequestUtils Populate question

I think this is right, cause your form on the jsp represents the
form bean. So if you miss some data this data is set to null cause
the view represantion hasn't included the information



-----Original Message-----
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 4:42 PM
To: 'Struts Users Mailing List'
Subject: BeanUtils/RequestUtils Populate question


Hi All,

I have a form bean that uses a value object. A specific form only access a
couple of the value objects properties. I would expect those not accessed to
be left alone upon form submittal. However I am finding that Struts (vi
RequestUtils.populate) is setting those fields not referenced in the JSP to
null.

This doesn't seem right to me, am I missing something? Has anyone else
experienced similar problems?

Jon.

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

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

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

Reply via email to