List of usage examples for org.springframework.ui Model addAttribute
Model addAttribute(String attributeName, @Nullable Object attributeValue);
From source file:com.yuga.ygplatform.modules.sys.web.TagController.java
/** * iconselect.tag//from www .jav a2 s. c o m */ @RequestMapping(value = "iconselect") public String iconselect(HttpServletRequest request, Model model) { model.addAttribute("value", request.getParameter("value")); return "modules/sys/tagIconselect"; }
From source file:heanetmedia.controllers.UploadController.java
@RequestMapping(value = "/upload", method = RequestMethod.GET) public String upload(Model model) { model.addAttribute("uploadUrl", "https://media.heanet.ie/secure/upload"); return "upload"; }
From source file:org.keyboardplaying.messaging.GreetingController.java
/** * Adds the {@code name} attribute to the model and returns the name of the template to display. * * @param name// w ww. j ava 2 s. com * the name to display * @param model * the model * @return the name of the template to display */ @RequestMapping("/greeting") public String greeting(@RequestParam(value = "name", required = false, defaultValue = "World") String name, Model model) { model.addAttribute("name", name); return "greeting"; }
From source file:org.ng200.openolympus.controller.auth.LoginController.java
@RequestMapping(value = "/login-failure") public String loginError(final Model model) { model.addAttribute("loginError", true); return "login"; }
From source file:com.erudika.scoold.controllers.NotFoundController.java
@GetMapping public String get(HttpServletRequest req, Model model) { model.addAttribute("path", "notfound.vm"); model.addAttribute("title", utils.getLang(req).get("notfound.title")); return "base"; }
From source file:com.erudika.scoold.controllers.PrivacyController.java
@GetMapping public String get(HttpServletRequest req, Model model) { model.addAttribute("path", "privacy.vm"); model.addAttribute("title", utils.getLang(req).get("privacy.title")); return "base"; }
From source file:com.erudika.scoold.controllers.TermsController.java
@GetMapping public String get(HttpServletRequest req, Model model) { model.addAttribute("path", "terms.vm"); model.addAttribute("title", utils.getLang(req).get("terms.title")); return "base"; }
From source file:com.kdubb.socialshowcaseboot.facebook.FacebookPhotosController.java
@RequestMapping(value = "/facebook/albums", method = RequestMethod.GET) public String showAlbums(Model model) { model.addAttribute("albums", facebook.mediaOperations().getAlbums()); return "facebook/albums"; }
From source file:eu.gyza.eap.test.YannisController.java
@RequestMapping(value = "/test/friends", method = RequestMethod.GET) public String showFeed(Model model) { model.addAttribute("friends", facebook.friendOperations().getFriendProfiles()); return "facebook/friends"; }
From source file:jungle.controller.GenreController.java
@RequestMapping(value = "ajouter", method = RequestMethod.GET) public String ajouter(Model m) { m.addAttribute("genre", new Genre()); return "genre/ajouter"; }