"This method must return a result of type ModelAndView." but i alreaady returning..can i know wht i have error : In the LoginView method it shows a error that thier must be a return.but i already have one how i fix this    	

@RequestMapping("/login")
    	public  loginView( HttpServletRequest request, HttpServletResponse res)
    	{
    		String name = request.getParameter("username");
    		String password = request.getParameter("password");
    		
    		
    		if(password.equals("admin"))
    		{
    			return new ModelAndView("hipage","","");    
    					
    		}
    	
    	}
    	
    
    }