JSP의 JSTL에서 LocalDateTime 사용하는 방법 위와 같이 Date type으로 변경한 후 변경된 값을 format에 맞도록 바꾸는 형태로 사용 웹 개발 2020.12.26
eclipse error - org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application org.apache.catalina.core.ApplicationDispatcher invoke 심각: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55) 위와 같은 오류가 발생하면 jstl.jar (ex. j.. 개발도구/WAS 2020.03.04
JSP / JSTL 에서 URL encode 하는 방법 을 사용한다. 사용방법 Link to your client 결과 Link to your client [주의사항] 을 사용할 경우 contextPath가 자동으로 들어간다. 만약 URL 주소 : http://localhost/wsm/yourClient contextPath : http://localhost/wsm 라면 결과는 Link to your client 웹 개발 2019.11.21
[jsp] EL 사용시 주의사항 request 객체에서 ArrayList 형식으로 파일을 리턴해준 것을 EL로 받을때, ex) 넘겨줄때 : request.setAttribute("array", 리스트객체); 받을때 : ${array} 와 같이 받을때, forEach를 쓰지 않고 출력할때 조심해야 한다. 리스트이기 때문에 array.변수명 과 같이 써주면 에러가 나고 array[0].변수명 과 같이 인덱스를 확실히 해줘야 한다. 웹 개발 2019.08.15
jstl에서 sql 사용 select site_id from esm_site_agent group by site_id order by site_id ${rows_site.site_id} select agent_id from esm_site_agent where site_id=? ${rows_site.site_id} ${rows_agent.agent_id} 웹 개발 2019.08.15
[JSTL] import page JSP에서 다른 컨텐츠(다른 페이지)를 포함하는 방법은 3가지이다. 두가지는 다른 게시물에 존재하고 나머지 한가지는 JSTL 태그이다. 사용법 : 태그도 가능하지만 와 같이 사용 가능하고 iframe이나 기타 다른 곳에 포함할때 비슷하게 사용할 수 있다. ex ) 테스트 소스 &{param.company} 에서 param은 getParameter("company") 와 같은 의미임 카테고리 없음 2019.08.11
JSTL requestEncoding(한글 안깨지게 하는 법) JSP에서는 request.setCharacterEncoding("UTF-8"); JSTL에서는 을 추가해 준 후에 웹 개발 2019.07.28