Merge branch 'tolag3'

This commit is contained in:
leejunho 2025-01-07 18:06:33 +09:00
commit 73d202fc14

View File

@ -396,6 +396,38 @@ public class BaseController {
return "/ClipReport4/ClipReportViewer";
}
@RequestMapping(value = "/clip/{pageFolder}/{pageName}/ClipReport4PdfDown.do")
public String ClipReport4PdfDown(HttpServletRequest request,
HttpSession session, Map<String, Object> map,
@PathVariable(value="pageFolder") String pageFolder,
@PathVariable(value="pageName") String pageName) throws Exception {
request.setCharacterEncoding("UTF-8");
String requstUrl = request.getServerName();
String parmes = "";
Enumeration<?> e = request.getParameterNames();
while (e.hasMoreElements()) {
String key = (String) e.nextElement();
String Values = request.getParameter(key);
if (key.startsWith("CLIPDATA_")) {
if(parmes.equals("")) {
parmes += key + "=" + Values;
} else {
parmes += "&" + key + "=" + Values;
}
}
}
session.setAttribute("query_clip", URLEncoder.encode(parmes));
// String requestQuery = URLDecoder.decode(session.getAttribute("query_clip").toString());
// return "redirect:http://" + requstUrl + "/" + pageFolder + "/" + pageName + ".jsp?crfNm="+request.getParameter("crfNm")+"&" + URLEncoder.encode(parmes);
return "/ClipReport4/ClipReportViewer_pdf_down";
}
@RequestMapping(value = "/clip/ClipReport4/ClipReportViewer/ClipReport4_clip.do")
public String ClipReport4_clip(HttpServletRequest request,
HttpSession session, Map<String, Object> map) throws Exception {