protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		String page=request.getParameter("page");
		HttpSession session=request.getSession(false);
		String role=(String)session.getAttribute("role");
		String id=(String)session.getAttribute("userid");

		if(page.equals("profilepage")){
			if(role.equals("Admin")){
				ArrayList<AdminBean> adminList=AdminDao.viewAdminId(id);
				request.setAttribute("result", adminList);
				RequestDispatcher rd=request.getRequestDispatcher("Other/"+role+"ProfilePage.jsp");
				rd.forward(request, response);
			}
			if(role.equals("Teacher")){
				ArrayList<TeacherBean> List=TeacherDao.viewTeacherId(id);
				request.setAttribute("result", List);
				RequestDispatcher rd=request.getRequestDispatcher("Other/"+role+"ProfilePage.jsp");
				rd.forward(request, response);
			}
		}
	}