// create a salesOrderForm from a OrderForm
salesOrderForm = (OrderForm) form;
// find the order by ID
SalesOrder salesOrder = loadSalesOrder (salesOrderForm.getId());
// now add this collection to the request
request.setAttribute(Constants.OBJECT_SALES_ORDER, salesOrder);
request.setAttribute(Constants.COLLECTION_SALES_ORDER_LINE_ITEMS_KEY, salesOrder.getLineItems());
request.setAttribute(Constants.COLLECTION_SALES_ORDER_PAYMENTS_KEY, salesOrder.getPayments());
// go to display page
return mapping.findForward(Constants.DISPLAY_PAGE_DETAIL_KEY);
}