You can either use a hidden field to resubmit the parent id to the child action:
<s:hidden name="parentId"/> In child action: public Integer getParentId() { return parentId; } public void setParentId(Integer parentId) { this.parentId = parentId; } Or you can store parent id in session and retrieve it in subsequent request. I think most people will use the first approach. On 6/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have a parent child scenario where the parent id is being passed to the child action. Since the actions are instantiated on each request, I am losing the parent id as soon as there is a subsequent request on the child action! Is there a straightforward technique for preserving the parent id in the child action? -- Scott [EMAIL PROTECTED]
-- Regards, Cuong Hoang