I think i corrected the issue.
Earlier what i was doing, setting the Action
in the value stack. But Action
are pushed in the stack, and this is the role of the ActionContext
.
Once the Action
is pushed into the ValueStack
, all the property of the Action
becomes ( atleast it seems to outer world) the property of ValueStack
and can be accessed directly.
In my case since, Action
was already pushed, so all i need to do is to set the property value of the Action
.
Hence following code
vs.setValue("PersonDetailsAction", pdAction);
should be changed to
vs.setValue("firstName", pdAction.getFirstName());
vs.setValue("lastName", pdAction.getLastName());