public ActionForward deleteProcedureGroupLocation( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IacucProtocolForm protocolForm = (IacucProtocolForm) form; IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean = getSelectedProcedureBean(request, protocolForm.getIacucProtocolDocument()); IacucProtocolStudyGroup selectedStudyGroup = getSelectedStudyGroup(request, selectedIacucProtocolStudyGroupBean); int selectedLocationIndex = getSelectedBeanIndex(request, BEAN_LOCATION_FIND_PARAM_START, FIND_PARAM_END); IacucProtocolStudyGroupLocation selectedStudyGroupLocation = selectedStudyGroup.getIacucProcedureLocationResponsibleList().get(selectedLocationIndex); String groupName = selectedStudyGroup.getIacucProtocolSpecies().getGroupAndSpecies(); String locationName = selectedStudyGroupLocation.getIacucLocationName().getLocationName(); return confirm( buildParameterizedConfirmationQuestion( mapping, form, request, response, CONFIRM_DELETE_PROCEDURE_GROUP_LOCATION_KEY, KeyConstants.QUESTION_PROCEDURE_GROUP_LOCATION_DELETE_CONFIRMATION, new String[] {groupName, locationName}), CONFIRM_DELETE_PROCEDURE_GROUP_LOCATION_KEY, ""); }
public ActionForward deleteProcedureLocation( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IacucProtocolForm protocolForm = (IacucProtocolForm) form; IacucProtocolStudyGroupLocation procedureLocation = getSelectedProcedureLocation(protocolForm, request); String locationName = procedureLocation.getIacucLocationName().getLocationName(); return confirm( buildParameterizedConfirmationQuestion( mapping, form, request, response, CONFIRM_DELETE_PROCEDURE_LOCATION_KEY, KeyConstants.QUESTION_PROCEDURE_LOCATION_DELETE_CONFIRMATION, new String[] {locationName}), CONFIRM_DELETE_PROCEDURE_LOCATION_KEY, ""); }