We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f74af43 commit 9b1ae9dCopy full SHA for 9b1ae9d
Ch04_OutputEscapingJSP/src/main/java/de/dominikschadow/webappsecurity/controller/IndexController.java
@@ -17,9 +17,7 @@
17
*/
18
package de.dominikschadow.webappsecurity.controller;
19
20
-import de.dominikschadow.webappsecurity.domain.Contact;
21
import org.springframework.stereotype.Controller;
22
-import org.springframework.ui.Model;
23
import org.springframework.web.bind.annotation.RequestMapping;
24
25
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@@ -33,9 +31,7 @@
33
31
@RequestMapping(value = "/")
34
32
public class IndexController {
35
@RequestMapping(method = GET)
36
- public String index(Model model) {
37
- model.addAttribute("contact", new Contact());
38
-
+ public String index() {
39
return "index";
40
}
41
0 commit comments