return new ForwardResolution("/WEB-INF/pages/schoolDetails.jsp");
}
@HandlesEvent("updateFirstPageAndShowSecond")
public Resolution updateFirstPageAndShowSecond(){
School school=null;
String buttonName="updateSchoolOnSecondPage";
String buttonValue="Update school";
school = (School)this.getContext().getAttributeFromSession("school");
//setting the values supplied from the 1st screen
school.setSchoolName(this.schoolName);
school.setAddressLine1(this.addressLine1);
school.setAddressLine2(this.addressLine2);
school.setAddressLine3(this.addressLine3);
school.setBoardOfEducation(this.boardOfEducation);
school.setCountry("India");
school.setDistrict(this.district);
school.setEmail(this.email);
school.setFax(this.fax);
school.setState(this.state);
school.setPhone1(this.phone1);
school.setPhone2(this.phone2);
school.setPincode(this.pincode);
this.getContext().setAttributeToSession("school", school);
this.getContext().setAttributeToSession("buttonName", buttonName);
this.getContext().setAttributeToSession("buttonValue", buttonValue);
return new ForwardResolution("/WEB-INF/pages/schoolMgmtDetails.jsp");
}