cleanup and testing work
This commit is contained in:
@@ -10,15 +10,15 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
@RequestMapping("/message")
|
||||
public class MessageController {
|
||||
|
||||
@RequestMapping(value = "/showForm", method = RequestMethod.GET)
|
||||
public String showForm() {
|
||||
return "message";
|
||||
}
|
||||
@RequestMapping(value = "/showForm", method = RequestMethod.GET)
|
||||
public String showForm() {
|
||||
return "message";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/processForm", method = RequestMethod.POST)
|
||||
public String processForm(@RequestParam("message") final String message, final Model model) {
|
||||
model.addAttribute("message", message);
|
||||
return "message";
|
||||
}
|
||||
@RequestMapping(value = "/processForm", method = RequestMethod.POST)
|
||||
public String processForm(@RequestParam("message") final String message, final Model model) {
|
||||
model.addAttribute("message", message);
|
||||
return "message";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user