You can either use a hidden field to resubmit the parent id to the child
action:
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 r
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
2 matches
Mail list logo