public void populate(ActionForm form, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); try { EscalationForm escalationForm = (EscalationForm) form; EscalationDao escalationDaoImpl = new EscalationDaoImpl(); // Work Flow Rule Name List workflow_rule_name_list = escalationDaoImpl.getworkflow_rule_name_list(); escalationForm.setWorkflow_rule_name_list(workflow_rule_name_list); // Flow Levels if (escalationForm.getEscalation_type() != null) { String escalation_type = escalationForm.getEscalation_type(); List flow_level_list = escalationDaoImpl.getflow_levels_list(escalation_type); escalationForm.setFlow_level_list(flow_level_list); } // Escalation Type template List escalation_template_list = escalationDaoImpl.getEscalation_Template_List(); escalationForm.setEscalation_template_list(escalation_template_list); System.out.println("escalation_template_list----" + escalation_template_list); } catch (Exception e) { logger.error("Exception Occurred" + e); errors.add("name", new ActionError("id")); } }