protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		try{
			response.setContentType("text/html");    
			PrintWriter out = response.getWriter();    
			
			String address=request.getParameter("address");
			String lname=request.getParameter("professorlname");
			String userid=request.getParameter("professorfname");
			HttpSession session = request.getSession();
			ProfessorBean personInSession = (ProfessorBean)session.getAttribute("person");
			String type="PROFESSOR";
			PersonBean person = new PersonBean();
			person.setAddress(address);
			person.setLname(lname);
			person.setType(type);
			person.setFname(userid);
			person.setId(personInSession.getProfessorId());
			PersonDao.updatePerson(person);
			
			session.setAttribute("username", person.getFname());
			ProfessorBean bean = (ProfessorBean)session.getAttribute("person");
			bean.setAddress(address);
			bean.setLname(lname);
			bean.setType(type);
			bean.setFname(userid);
			bean.setId(personInSession.getProfessorId());
			session.setAttribute("person", bean);
			RequestDispatcher rd=request.getRequestDispatcher("thankyouupdateprof.jsp");
			rd.forward(request,response);  
		}catch(Exception e){
			e.printStackTrace();
		}
	}