public String add() { try { bcMap = DataPacked.bigclassMap(); specMap = DataPacked.specMap(); return "edit"; } catch (Exception e) { e.printStackTrace(); return Action.ERROR; } }
@SuppressWarnings("unchecked") public String edit() { try { stuInfo = (HashMap<String, String>) stuDao.getStuById(loginName); specMap = DataPacked.specMap(); bcMap = DataPacked.bigclassMap(); gradeList = stuDao.getGradeInfo(); } catch (Exception e) { e.printStackTrace(); return Action.ERROR; } return "edit"; }