Untitled


SUBMITTED BY: Guest

DATE: Dec. 17, 2013, 4:41 a.m.

FORMAT: Text only

SIZE: 1.4 kB

HITS: 3103

  1. <form:form method="POST" action="index.htm" modelAttribute="itemGroup" inputpath="value">
  2. <input type="image" img src="Images/receipt.png" height="150px" width="180px" alt="Submit" />
  3. <input type="image" img src="Images/shoppinglist.png" height="150px" width="180px" alt="Submit" ">
  4. <input type="image" img src="Images/voucher.png" height="150px" width="180px" alt="Submit" >
  5. <input type="image" img src="Images/card.png" height="150px" width="180px" alt="Submit" />
  6. </form:form>
  7. @RequestMapping(value = {"/index"},method = RequestMethod.GET)
  8. public String showHomePage(Model model)
  9. {
  10. model.addAttribute("itemGroup", new ItemGroup());
  11. return "index";
  12. }
  13. @RequestMapping(value = {"/index"},method = RequestMethod.POST)
  14. public String onSubmit(@ModelAttribute("itemGroup") ItemGroup itemGroup, Model model)
  15. {
  16. model.addAttribute("itemGroupImage",itemGroupService.showJobGroupImage(itemGroup.getValue()));
  17. return "itemGroupView";
  18. }
  19. <input type="image" img src="Images/receipt.png" value="receipt" height="150px" width="180px" alt="Submit" />
  20. <input type="image" img src="Images/shoppinglist.png" value="shoppinglist" height="150px" width="180px" alt="Submit" ">

comments powered by Disqus