reportVO.setSelectedFields(getSelectedFieldsWithNames((String)adHocReportForm.get("contentFields"), (String)adHocReportForm.get("contentOrders"), (String)adHocReportForm.get("contentFieldNames")));
}
moduleId = reportVO.getModuleId();
request.setAttribute("pagedata", reportVO);
} else { // action is telling us to do something for real, check for errors.
ActionErrors errors = adHocReportForm.validate(mapping, request);
if (0 < errors.size()) {
saveErrors(request, errors);
reportVO = remote.getAdHocReport(userId, reportId);
moduleId = reportVO.getModuleId();
request.setAttribute("pagedata", reportVO);