f-angi
10/25/2016 - 1:49 PM

Passing an object from an action to the render phase. After setting the attribute, it can be accessed: - in a jsp page, e.g.: ${obj} - in a

Passing an object from an action to the render phase. After setting the attribute, it can be accessed:

  • in a jsp page, e.g.: ${obj}
  • in a render method, e.g.: renderRequest.getAttribute("obj");
public void action(ActionRequest request, ActionResponse response) {
  …
  request.setAttribute("obj", anObject);
}