|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/control") | 
|---|
|  |  |  | public void control(HttpServletResponse response) { | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | response.sendRedirect(contextPath+"/views/control.html"); | 
|---|
|  |  |  | } catch (Exception ex){ | 
|---|
|  |  |  | ex.printStackTrace(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/monitor/{cnrId}/{ledId}") | 
|---|
|  |  |  | public void monitor(@PathVariable("cnrId") Integer cnrId, | 
|---|
|  |  |  | @PathVariable("ledId") Integer ledId, | 
|---|
|  |  |  | 
|---|
|  |  |  | public void monitor(@PathVariable("ledId") Integer ledId, | 
|---|
|  |  |  | HttpServletResponse response) { | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | response.sendRedirect(contextPath+"/views/monitor/monitor0.html"+ "?" + "ledId=" + ledId); | 
|---|
|  |  |  | response.sendRedirect(contextPath+"/views/monitor/monitor0.html"+ "?"  + "crnId=" + 2 + "&" + "ledId=" + ledId); | 
|---|
|  |  |  | } catch (Exception ex){ | 
|---|
|  |  |  | ex.printStackTrace(); | 
|---|
|  |  |  | } | 
|---|