Package com.firefly.mvc.web.view

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


  public View dispose(HttpServletRequest request, HttpServletResponse response) {
    Food food = new Food();
    food.setName("banana");
    food.setPrice(3.99);
    log.info("food interceptor 2 : {}", food);
    return new JsonView(food);
  }
View Full Code Here


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

  @RequestMapping(value = "/book/json", method = HttpMethod.POST)
  public View getBook(@HttpParam("book") Book book) {
    return new JsonView(book);
  }
View Full Code Here

    return new JsonView(book);
  }
 
  @RequestMapping(value = "/book/testMethod", method = {HttpMethod.GET, HttpMethod.POST})
  public View testMethod(@HttpParam("book") Book book) {
    return new JsonView(book);
  }
View Full Code Here

TOP

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

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.