String classIdSelectedString = request.getParameter("classId"); Integer classIdSelected = null; if (classIdSelectedString != null) { classIdSelected = Integer.valueOf(classIdSelectedString); } else { classIdSelected = (Integer) request.getAttribute("classId"); } return classIdSelected;
String classIdSelectedString = request.getParameter("classId"); Integer classIdSelected = null; if (classIdSelectedString != null) { classIdSelected = Integer.valueOf(classIdSelectedString); } else { classIdSelected = (Integer) request.getAttribute("classId");
	private Integer readClassSelected(HttpServletRequest request) {		String classIdSelectedString = request.getParameter("classId");		Integer classIdSelected = null;		if (classIdSelectedString != null) {			classIdSelected = Integer.valueOf(classIdSelectedString);		} else {			classIdSelected = (Integer) request.getAttribute("classId");		}		return classIdSelected;	}