public ActionForward execute(ActionMapping mapping,
                                            ActionForm form, 
                                            HttpServletRequest request, 
                                            HttpServletResponse response)
	throws Exception 
	{
		int action_perform=0;
		String action_target="failure";
		
		UserLogin u = new UserLogin();
		
		ActionMessages errors_mesg = new ActionMessages();
		
		UserForm uf = (UserForm)form;
		
		if(form != null){
			u.setUsername(uf.getUsername());
			u.setPassword(uf.getPassword());
			action_perform = u.doLogin();
		}
		if(action_perform==0){
			errors_mesg.add("submitError", new ActionMessage("errors.login.fail"));
			saveErrors(request,errors_mesg);
			
			action_target="failure";
		}
		else
                {
                    String tempStr = String.valueOf(action_perform);
                    if(tempStr.equals("10"))
                    {
			action_target="admin_success";
                        //populate admin data here
                    }
                    else if(tempStr.equals("11"))
                    {
			action_target="professor_success";
                        //populate professor data here
                        //call professorAction?
                    }
                    else if(tempStr.equals("12"))
                    {
			action_target="student_success";
                        //populate student data here
                    }
		}
		
		return mapping.findForward(action_target);
	}