ENV: 7.2.1/Solaris
Using a controller (via a component form submission) to gather results of a query and add the Document object (distSales) to the context.
context.getRequest().setAttribute("DistributorSales", distSales);
The controller then executes a Http302ForwardAction redirection to a results page.
return new Http302ForwardAction(new FullUrlTarget(context.getRequest(), new ServerRelativeTarget(context.getPageLink("/results-page"))));
That results page has a component at executes a method in an external that simply executes a getAttribute to retrieve that stored Document object from the context.
Document resultsDoc = (Document) context.getRequest().getAttribute("DistributorSales");
Unfortunately - it appears that the redirection "empties" the context and the result of the getAttribute is null.
#Logging output in the Controller
2012-08-26 19:49:40,295 DEBUG [com.somecompany.livesite.controller.distributorlocator.DistributorController] DistributorSales = org.dom4j.tree.DefaultDocument@1eb89f9 [Document: name null]
#Logging output in the External
2012-08-26 19:49:42,867 DEBUG [com.somecompany.livesite.component.external.distributorlocator.DistributorUIExternal] DistributorSales = null
Has anyone experienced (and found a solution) to this? Hopefully it's not a bug.
TIA