return new RedirectResolution(DisplayMessageAction.class, "forwardToMessagePage");
}
//helper method that does the updation of the student with the newly supplied values.
private Student updateStudentsDetails() {
Student student = (Student) this.getContext().getAttributeFromSession(
"student");
StudentDetails studentDetails = student.getStudentDetails();
Standard standard = this.standardService.getById(this.standardId);
Division division = this.divisionService
.getDivisionById(this.divisionId);
student.setStandard(standard);
student.setDivision(division);
studentDetails.setAcademicAchievements(this.academicAchievements);
studentDetails.setBelowPovertyLine(this.belowPovertyLine);
studentDetails.setCaste(this.caste);
studentDetails.setDateOfBirth(this.dateOfBirth);
studentDetails.setFatherFirstName(this.fatherFirstName);
studentDetails.setFatherLastName(this.fatherLastName);
studentDetails.setFatherMiddleName(this.fatherMiddleName);
studentDetails.setFirstName(this.firstName);
studentDetails.setGrossHouseHoldIncome(this.grossHouseHoldIncome);
studentDetails.setLastName(this.lastName);
studentDetails.setLocalGuardianFirstName(this.localGuardianFirstName);
studentDetails.setLocalGuardianLastName(this.localGuardianLastName);
studentDetails.setLocalGuardianMiddleName(this.localGuardianMiddleName);
studentDetails.setMiddleName(this.middleName);
studentDetails.setMotherFirstName(this.motherFirstName);
studentDetails.setMotherLastName(this.motherLastName);
studentDetails.setMotherMiddleName(this.motherMiddleName);
studentDetails.setMotherTounge(this.motherTounge);
studentDetails.setNationality(this.nationality);
studentDetails.setNonAcademicAchievements(this.nonAcademicAchievements);
studentDetails.setOtherBackwardCaste(this.otherBackwardCaste);
studentDetails
.setPermanentHouseNameOrNumber(this.permanentHouseNameOrNumber);
studentDetails.setPermanentPhoneNumber(this.permanentPhoneNumber);
studentDetails.setPermanentPinCode(this.permanentPinCode);
studentDetails.setPermanentState(this.permanentState);
studentDetails.setPermanentStreet(this.permanentStreet);
studentDetails
.setPermanentVillageOrTownOrCity(this.permanentVillageOrTownOrCity);
studentDetails.setPlaceOfBirth(this.placeOfBirth);
studentDetails
.setPresentHouseNameOrNumber(this.presentHouseNameOrNumber);
studentDetails.setPresentPhoneNumber(this.presentPhoneNumber);
studentDetails.setPresentPinCode(this.presentPinCode);
studentDetails.setPresentState(this.presentState);
studentDetails.setPresentStreet(this.presentStreet);
studentDetails
.setPresentVillageOrTownOrCity(this.presentVillageOrTownOrCity);
studentDetails.setReligion(this.religion);
studentDetails.setScheduledCasteOrTribe(this.scheduledCasteOrTribe);
studentDetails.setSubcaste(this.subcaste);
student.setStudentDetails(studentDetails);
return student;
}