Igor Vlasov wrote:
Copying of properties with ChainingInterceptor  working GOOD.

OK, good that something is working well. What's not clear is what *isn't* working...

I have very complex object as a property to copy and i MUST make every part
of it in javaBean specification. For me it is too tedious. Then  i want
manually copy whole property from  actionOne to  actionTwo.

The second cause is process of copying. It is sometime like "magic" and copy
many objects (from action support itself.). And i want to copy just one my
property.

Can you post code that works (as a semplar), and then a sample of the code you'd like to write instead (to illustrate what you're looking for)?

L.

Ted Husted wrote:
The use case for the chain result is that JavaBean properties on
ActionTwo that match JavaBean properties on ActionOne are copied
forward. This sounds like the same use case that you describe, and
it's unclear why it isn't working, or why you would need to do
anything manually.

The most helpful thing would be to include the relevant source code
from your Actions and struts.xml

HTH, Ted.
http://www.catb.org/~esr/faqs/smart-questions.html


On 10/10/07, Igor Vlasov <[EMAIL PROTECTED]> wrote:
I have action "one" and it calls action "two" throw:
 <result  name="success" type="chain" >two</result>


I can use ChainingInterceptor to copy properties of "one" action to "two"
action.

I get behaviour : one.param->two.param.
But the property "param" must be in  javaBeans specification(have setter
and
getter method for each property).

Can i MANUALLY get object for "one" action or exact "one.property" from
:"execute()" method of action "two"?


--
View this message in context:
http://www.nabble.com/Manually-obtain-previous-action-parameters-after-action-%22chaining%22--tf4601173.html#a13136989
Sent from the Struts - User mailing list archive at Nabble.com.


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



--
HTH, Ted <http://www.husted.com/ted/blog/>

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






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

Reply via email to