package no.dusken.aranea.web.control; import no.dusken.aranea.service.IssueService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; /** * @author Marvin B. Lillehaug <lillehau@underdusken.no> */ @Controller public class IssueController2 { private IssueService issueService; @RequestMapping("/issue/latest.do") public String latestIssue(Model model){ model.addAttribute("issues", issueService.getPublishedIssues(1)); return "no/dusken/aranea/base/web/pdf/latest"; } @Autowired public void setIssueService(IssueService issueService) { this.issueService = issueService; } }