Package com.firefly.mvc.web.view

Examples of com.firefly.mvc.web.view.JspView


  public View getFood(HttpServletRequest request) {
    Food food = new Food();
    food.setName("orange");
    food.setPrice(3.5);
    request.setAttribute("fruit", food);
    return new JspView("/food.jsp");
  }
View Full Code Here


    return new JspView("/food.jsp");
  }
 
  @RequestMapping(value = "/food/view1")
  public View getFoodView(HttpServletRequest request) {
    return new JspView("/foodView1.jsp");
  }
View Full Code Here

  private static Log log = LogFactory.getInstance().getLog("firefly-system");

  @RequestMapping(value = "/hello")
  public View index(HttpServletRequest request) {
    request.setAttribute("hello", "你好 firefly!");
    return new JspView("/index.jsp");
  }
View Full Code Here

  }

  @RequestMapping(value = "/book/value")
  public View bookValue(HttpServletRequest request, @HttpParam Book book) {
    request.setAttribute("book", book);
    return new JspView("/book.jsp");
  }
View Full Code Here

    return new JspView("/book.jsp");
  }

  @RequestMapping(value = "/book/create", method = HttpMethod.POST)
  public View createBook(@HttpParam("book") Book book) {
    return new JspView("/book.jsp");
  }
View Full Code Here

TOP

Related Classes of com.firefly.mvc.web.view.JspView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.