JSTL Taking a value from Map
c:out value="${ObjectGenInfo.customLabelMap['LBL_REQUISITION_DEPT']}"
Map customLabelMap=new HashMap();
int clientId = cmd.getRequisition().getClientId();
customLabelMap.put("LBL_REQUISITION_DEPARTMENT",Util.getLabel(clientId, "LBL_REQUISITION_DEPARTMENT",locale));
customLabelMap.put("LBL_REQUISITION_DEPT",Util.getLabel(clientId, "LBL_REQUISITION_DEPT",locale));
cmd.setCustomLabelMap(customLabelMap);
c:out value="${ObjectGenInfo.customLabelMap['LBL_REQUISITION_DEPT']}"
Map
int clientId = cmd.getRequisition().getClientId();
customLabelMap.put("LBL_REQUISITION_DEPARTMENT",Util.getLabel(clientId, "LBL_REQUISITION_DEPARTMENT",locale));
customLabelMap.put("LBL_REQUISITION_DEPT",Util.getLabel(clientId, "LBL_REQUISITION_DEPT",locale));
cmd.setCustomLabelMap(customLabelMap);
No comments:
Post a Comment