Package com.gracevallorani.config

Examples of com.gracevallorani.config.J2eeConfig


    return JSP_DISPLAY;   
  }

  @RequestMapping(value = "delete", method = RequestMethod.GET)
  public String getDelete(@RequestParam(value = "id", required = true, defaultValue = "0") int id) throws Exception {   
    IJpaFactory<Photo> strategy = new PhotoStrategy(new J2eeConfig());
       
    try {
      Photo photo = strategy.get(id);
      strategy.setTransactional(true);
      strategy.delete(photo);
View Full Code Here


public class PhotoController {
  @RequestMapping(value = "index", method = RequestMethod.GET)
  public String showIndex(
      @RequestParam(value = "color", required = false, defaultValue = "true") String color,     
      Model model) {
    PhotoStrategy strategy = new PhotoStrategy(new J2eeConfig());
   
    try {
      model.addAttribute("list", Utils.createRowList(strategy.getAll(), 3));
      model.addAttribute("color", color.equals("true"));
      return "/WEB-INF/website/photos/index.jsp";
View Full Code Here

  @RequestMapping(value = "show", method = RequestMethod.GET)
  public String showShow(
      Model model, 
      @RequestParam(value = "id", required = true) int id,
      @RequestParam(value = "color", required = false, defaultValue = "true") String color)  {
    PhotoStrategy strategy = new PhotoStrategy(new J2eeConfig());
   
    try {
      Photo photo = strategy.get(id);
     
      if (photo == null) {
View Full Code Here

TOP

Related Classes of com.gracevallorani.config.J2eeConfig

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.