how to forward request in login controller to next page?

this is my controller class

@Controller
public class loginController {

  @RequestMapping("/hello")  
    public ModelAndView helloWorld(HttpServletRequest request,HttpServletResponse res) {  
        String name=request.getParameter("name");  
        String password=request.getParameter("password");  

        if(password.equals("admin")){  
        String message = "HELLO "+name;  
        return new ModelAndView("hellopage", "message", message);  
        }  
        else{ return new ModelAndView("errorpage", "message","Sorry, username or password error");  
        }  
    }  

}