@RequestMapping(value = "/viewTab/{archive}/{pageName}", method = RequestMethod.GET)
public String viewTab(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, @PathVariable String pageName, HttpServletRequest request, HttpServletResponse response) throws Exception {
modelMap.put("pageName", pageName);
common(confBean, userBean, archive, modelMap, request, response);
ViewPageCommand viewPageCommand = new ViewPageCommand(request.getParameterMap(), modelMap);
viewPageCommand.execute();
Map<String, String> mapParams = new TreeMap<String, String>();
mapParams.put("viewTab", pageName);
mapParams.put("frontUrl", (String) modelMap.get("frontUrl"));
try {
mapParams.put("mediaURL", this.getClass().getClassLoader().getResource(confBean.getMediaPath()).getPath());