본문 바로가기

전체 글99

[HttpServletRequest] request 출력 // 요청 파라미터 출력System.out.println("Request Parameters:");Map parameterMap = request.getParameterMap();for (Map.Entry entry : parameterMap.entrySet()) { System.out.println("Key: " + entry.getKey() + ", Value: " + String.join(", ", entry.getValue()));} 콘솔결과 : 2024. 7. 25.
[php] db 에서 조회한 날짜중 가장 최근날짜 selected >2024 >2025 >2026 >2027 "> 2024. 7. 22.
[php] 데이터베이스 날짜 select ">   결과 2024. 7. 22.
[java] java로 xml 다운로드 @RequestMapping(value="/convertToXml.do", produces="application/x-msdownload;charset=utf-8") public void signInsertToXml(@ModelAttribute("searchVO") ReservationReportVO vo, HttpServletRequest request, HttpServletResponse response) throws Exception { logger.info("CALL //convertToXml.do"); //xml생성 // 현재 시간 String currentTime = DateUtil.getCurrentDateTime(); //String xmlNm = "_sign_".concat(cu.. 2024. 7. 1.
[java] xml 생성 public String signInsertToXml(@ModelAttribute("searchVO") UserVO vo,Model model, HttpServletRequest request) throws Exception { logger.info("CALL /signInsertToXml.do"); //xml생성 String base64Code = ""; // 현재 시간 String currentTime = DateUtil.getCurrentDateTime(); String signKeyNm=""; String xmlNm = "_sign_".concat(currentTime); //XML 파일 경로 String SRC = ""; //firstPdf + 이미지 합쳐진 최종 pdf파일 .. 2024. 6. 19.
[java] pdf 생성 public String signInsert(@ModelAttribute("searchVO") UserVO vo,Model model, HttpServletRequest request) throws Exception { logger.info("CALL /signInsert.do"); //pdf생성 String base64Code = ""; // 현재 시간 String currentTime = DateUtil.getCurrentDateTime(); String signKeyNm=""; String pdfNm = "_sign_".concat(currentTime); //이미지없이 데이터만 넣은 pdf파일 String SRC = ""; //firstPdf + 이미지 합쳐진 최종 pdf파일 .. 2024. 6. 19.
[java] xsl+xml 을 pdf파일로 변환하기 @RequestMapping(value = "/sign/convertToPDF.do") public void convertToPDF() throws IOException, FOPException, TransformerException, SAXException { // the XSL FO file File xsltFile = new File("src/main/resources/static/homepage/xml/employeesfo.xsl"); // the XML file which provides the input StreamSource xmlSource = new StreamSource(new File("src/main/resources/static/homepage/xml/_sign_20240.. 2024. 6. 19.
[Spring Boot] 엑셀 다운로드 엑셀다운로드 function fn_excelDown(){ if(confirm("다운받으시겠습니까?")){ document.frm.action = ""; document.frm.submit(); } } controller @SuppressWarnings("unchecked") @RequestMapping(value = "/user/loginLogList/excelDownload.do", produces = "application/x-msdownload;charset=utf-8") public void itemExcelDownload(@ModelAttribute("searchVO") UserVO vo, HttpServletRequest request, HttpServletResponse response) t.. 2024. 2. 29.
[JavaScript] 팝업 날짜 지정 오늘 하루 이 창을 열지 않음 [닫기] .popup p span{font-size:20px} #popup1, #popup2, #popup3, #popup4 { position: absolute; top: 7%; max-width: 400px; width: 78%; height: auto; padding: 10px; border: 1px solid rgb(221, 221, 221); background: rgb(255, 255, 255); box-shadow: 2px 2px 6px #666; display: none; } var today = new Date(); // html 에서 data-expired 가 설정된 팝업 div 들 찾기 var popup = document.querySelectorAll(.. 2024. 2. 22.
728x90