// set up the left nav menu
HttpSession session = request.getSession();
UserObject userObject = (UserObject)session.getAttribute("userobject");
int individualID = userObject.getIndividualID(); // logged in user
int entityID = userObject.getEntityId(); // logged in user's entityID
ActionErrors allErrors = new ActionErrors();
try {
ListPreference listPrefs = userObject.getListPreference("USER");
String filter = "SELECT a.UserID FROM user a, individual b, entity c where a.IndividualID = b.IndividualID and b.Entity = c.EntityID and c.EntityID = " + entityID;
ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPrefs, request, ValueListConstants.CUSTOMER_USER_LIST_TYPE, ValueListConstants.customerUserViewMap, false);
listParameters.setFilter(filter);
ValueList valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
ValueListVO listObject = valueList.getValueList(individualID, listParameters);
ValueListDisplay displayParameters = new ValueListDisplay(new ArrayList(), false, false, true, true, true, true);
listObject.setDisplay(displayParameters);
request.setAttribute("valueList", listObject);
} catch (Exception e) {
System.out.println("[Exception][CV UserListHandler] Exception thrown in execute(): " + e);
allErrors.add("error.unknownError", new ActionMessage("error.unknownError"));
}
if (!allErrors.isEmpty()) {
saveErrors(request, allErrors);
}
return (mapping.findForward(forward));
} // end execute() method