FileDocCategorySizeDatePackage
BikesController.javaAPI DocExample673Sat Apr 23 20:38:00 BST 2005com.springbook

BikesController.java

package com.springbook;

import org.springframework.web.servlet.mvc.Controller;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;


public class BikesController implements Controller {
    private RentABike facade;

    public RentABike getFacade() {
        return facade;
    }

    public void setFacade(RentABike facade) {
        this.facade = facade;
    }

    public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        return new ModelAndView("bikes.jsp", "rentaBike", facade);
    }
}