Skip to content

Commit 9b1ae9d

Browse files
committed
Removed unused model attribute
1 parent f74af43 commit 9b1ae9d

File tree

1 file changed

+1
-5
lines changed
  • Ch04_OutputEscapingJSP/src/main/java/de/dominikschadow/webappsecurity/controller

1 file changed

+1
-5
lines changed

Ch04_OutputEscapingJSP/src/main/java/de/dominikschadow/webappsecurity/controller/IndexController.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
*/
1818
package de.dominikschadow.webappsecurity.controller;
1919

20-
import de.dominikschadow.webappsecurity.domain.Contact;
2120
import org.springframework.stereotype.Controller;
22-
import org.springframework.ui.Model;
2321
import org.springframework.web.bind.annotation.RequestMapping;
2422

2523
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@@ -33,9 +31,7 @@
3331
@RequestMapping(value = "/")
3432
public class IndexController {
3533
@RequestMapping(method = GET)
36-
public String index(Model model) {
37-
model.addAttribute("contact", new Contact());
38-
34+
public String index() {
3935
return "index";
4036
}
4137
}

0 commit comments

Comments
 (0)