@Controller public class EditSpannerController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_SPANNER |
static String |
VIEW_EDIT_SPANNER |
static String |
VIEW_UPDATE_SUCCESS |
static String |
VIEW_VALIDATION_ERRORS |
| Constructor and Description |
|---|
EditSpannerController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
displayPage(int id)
Display the edit spanner page
|
org.springframework.web.servlet.ModelAndView |
updateSpanner(SpannerForm formData,
org.springframework.validation.BindingResult validationResult)
Accept form submission from edit spanner page
|
public static final String VIEW_EDIT_SPANNER
public static final String VIEW_UPDATE_SUCCESS
public static final String VIEW_VALIDATION_ERRORS
public static final String MODEL_SPANNER
@RequestMapping(value="/editSpanner",
method=GET)
public org.springframework.web.servlet.ModelAndView displayPage(@RequestParam
int id)
throws SpannerNotFoundException
SpannerNotFoundException@RequestMapping(value="/editSpanner",
method=POST)
public org.springframework.web.servlet.ModelAndView updateSpanner(@ModelAttribute(value="spanner")
SpannerForm formData,
org.springframework.validation.BindingResult validationResult)
Copyright © 2015. All rights reserved.