/** Return the selected service page. */ @RequestMapping(value = "/services", method = RequestMethod.GET) public String dashBoardtemmp( @RequestParam(value = "serviceName", required = true) String serviceName, Locale locale, Model model) { CountOneUtilities.hitCounter(); System.out.println("Service Name Requested-> " + serviceName); for (Services service : Services.values()) { if (serviceName.equals(service.toString())) { model.addAttribute( "serviceName", CountOneUtilities.getServiceName(service.toString()) + "|"); return "/services/" + service.toString(); } } return "services"; }
/** Return the selected service page. */ @RequestMapping(value = "/Services", method = RequestMethod.GET) public String dashBoard(Locale locale, Model model, HttpServletRequest request) { String serviceName = request.getParameter("serviceName"); if (serviceName != null) { for (Services service : Services.values()) { if (serviceName.equals(service.toString())) { String servicedesc = CountOneUtilities.getServiceName(service.toString()); Runnable pageAccessMonitor = new PageAccessMonitorThread(request, servicedesc, siteAppDao); Thread currentthread = new Thread(pageAccessMonitor); currentthread.start(); model.addAttribute("serviceName", servicedesc + "|"); return "/services/" + service.toString(); } } } return "services"; }