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";