컴퓨터 썸네일형 리스트형 [JSTL] 커스텀 태그 작성하기 출처: https://itstory.tk/entry/JSTL-JSP-커스텀-태그-만들기 [덕's IT Story] https://devchul.tistory.com/28 더보기 jstl custom tag 에서 spring bean 주입하기 1. RequestContextAwareTag 상속받기 1 2 3 4 5 6 7 8 9 10 11 public class XXXTag extends RequestContextAwareTag { @Override protected int doStartTagInternal() throws Exception { // WebApplicationContext 를 얻는다. WebApplicationContext ctx = getRequestContext().getWebApplicationContext(); // bean 주입 return SKIP_BODY; } } Colored by Color Scripter cs 2. request 사용하기 1 2 3 4 5 6 7 8 9 10 11 public class XXX.. 더보기 이전 1 2 3 4 ··· 20 다음