Example #1
0
  @RequestMapping(value = "/showSystems", method = RequestMethod.POST)
  public String addSystem(@ModelAttribute("system") System system, ModelMap model) {
    model.addAttribute("id", system.getId());
    model.addAttribute("name", system.getName());
    model.addAttribute("issueTrackerUrl", system.getIssueTrackerUrl());
    model.addAttribute("programmingLang", system.getProgrammingLang());
    model.addAttribute("versionControlUrl", system.getversionControlUrl());

    return "showSystems";
  }
Example #2
0
  @RequestMapping(value = "/showSystems", method = RequestMethod.GET)
  public String showSystems(@ModelAttribute("system") System system, ModelMap model) {
    // EXAMPLE SYSTEM OBJECT STRICTLY FOR THE GET METHOD, PROVIDES DUMMY DATA FOR THE TABLE
    system.setId(10);
    system.setIssueTrackerUrl("http://bugs.openmpt.org/view.php?id=401");
    system.setName("OpenMPT");
    system.setProgrammingLang("C++");
    system.setversionControlUrl("http://bugs.openmpt.org/changelog_page.php");
    // ------------------------------------------------------------------------------------

    model.addAttribute("id", system.getId());
    model.addAttribute("name", system.getName());
    model.addAttribute("issueTrackerUrl", system.getIssueTrackerUrl());
    model.addAttribute("programmingLang", system.getProgrammingLang());
    model.addAttribute("versionControlUrl", system.getversionControlUrl());

    return "showSystems";
  }