protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		response.setContentType("text/html");    
		PrintWriter out = response.getWriter();
		String userid=request.getParameter("sjsuid");    
		String password=request.getParameter("password");
		HttpSession session = request.getSession(false);  
		if(session!=null)  
			session.setAttribute("name", userid);
		if(PersonDao.updatePassword(password, userid)==1){
			out.print("<p style=\"color:white\">Successfully Registered! Click <a href='index.jsp'>here</a> to login</p>");
			RequestDispatcher rd=request.getRequestDispatcher("plainpage.jsp");    
			rd.include(request,response);
		}else{
			out.print("<p style=\"color:red\">SJSU ID is not registered in the system. Please contact office administrator</p>");    
			RequestDispatcher rd=request.getRequestDispatcher("plainpage.jsp");    
			rd.include(request,response);
		}
	}