본문 바로가기

JSP3

apache-jsp exceeding the 65535 bytes limit jetty 9.4.x 버전에서 apache-jsp dependency를 추가하고 사용하다가 발생한 에러를 정리합니다. 에러 내용 javax.servlet.ServletException: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [153] in the generated java file: [C:\Users\ynkim\AppData\Local\Temp\jetty-0_0_0_0-19090-webapp--any-5894429484268535853\jsp\org\apache\jsp\WEB_002dINF\jsp\scenariobot\map_jsp.java] The code of metho.. 2023. 5. 24.
JSP에서 DB 쿼리 실행기 작성 초간단 샘플 JSP에서 DB 쿼리 실행기 작성 초간단 샘플 프로젝트 수행시 급하게 쿼리를 수행할 일이 생겨서 정리한다. 운영서버의 DB 경우 현업담당자는 권한이없고, DB 관리자 또한 어플리케이션 코드를 통해 처리하라고 가이드했다. 현업과 DB 관리자에게 의견을 구하고 아래와 같이 쿼리 작성 페이지를 만들어서 쿼리를 수행하기로했다. 1. query.JSP 파일 작성 DB excute -1) { query = query.replaceAll("EXEC", "call"); query = query.replaceAll("exec", "call"); query = "{? = " + query + "}"; out.println(query); CallableStatement cs = con.prepareCall(query); c.. 2022. 12. 22.
매우 쉬운 첨부파일 업로드 하기 JSP 예제 JSP 첨부파일 업로드 하기 쉬운 예제 서버에 첨부파일 업로드하는 간단한 예제를 만들어 봤습니다. 준비물 apache 에서 제공하는 Liblibrary 필요 보통 왠만한 was 구성시에는 기본으로 들어가는 애들이긴 합니다. 아래 maven 레파지토리에서 버전 확인후 다운 가능. 1. commons-fileupload mvnrepository.com/artifact/commons-fileupload/commons-fileupload Maven Repository: commons-fileupload » commons-fileupload The Apache Commons FileUpload component provides a simple yet flexible means of adding support fo.. 2021. 2. 19.