|  |  | 
 |  |  |  | 
 |  |  | import org.springframework.beans.factory.annotation.Value; | 
 |  |  | import org.springframework.stereotype.Controller; | 
 |  |  | import org.springframework.web.bind.annotation.PathVariable; | 
 |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @RequestMapping("/monitor") | 
 |  |  |     public void monitor(HttpServletResponse response) { | 
 |  |  |     @RequestMapping("/monitor/{cnrId}") | 
 |  |  |     public void monitor(@PathVariable("cnrId") Integer cnrId, | 
 |  |  |                         HttpServletResponse response) { | 
 |  |  |         try{ | 
 |  |  |             response.sendRedirect(contextPath+"/views/monitor/monitor.html"); | 
 |  |  |             String append = cnrId==null?"":("?crnId="+cnrId); | 
 |  |  |             response.sendRedirect(contextPath+"/views/monitor/monitor.html"+append); | 
 |  |  |         } catch (Exception ex){ | 
 |  |  |             ex.printStackTrace(); | 
 |  |  |         } |