@Controller
@SessionAttributes(value="book")
public class BooksController
extends de.digitalcollections.commons.springmvc.controller.AbstractController
implements org.springframework.context.MessageSourceAware
| Constructor and Description |
|---|
BooksController() |
| Modifier and Type | Method and Description |
|---|---|
String |
edit(long id,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
String |
list(org.springframework.ui.Model model) |
protected String |
module() |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
String |
view(long id,
org.springframework.ui.Model model) |
public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAware@ModelAttribute(value="menu") protected String module()
@RequestMapping(value="/books/{id}/edit",
method=GET)
public String edit(@PathVariable
long id,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
@RequestMapping(value="/books",
method=GET)
public String list(org.springframework.ui.Model model)
@RequestMapping(value="/books/{id}",
method=GET)
public String view(@PathVariable
long id,
org.springframework.ui.Model model)
Copyright © 2018. All rights reserved.