EL 안에 EL 1년 반 만에 다시 찾은, EL 안에 EL 사용하는 방법 커스텀 태그에서 Expression Language를 사용하다보면, 언젠간 아래처럼 쓰고 싶은 경우가 발생할 수도 있습니다. 전 예전에 한 번 이 벽에 부딪혀서 결국 못 넘고 좌절한 적 [http://whiteship.me/623]이 있는데, 해당 글에 물개선생님이 남겨주신 댓글과 사부님이 만든 태그를 보니.. 이해가 됩니다. 먼저 상황부터 설명을 하자면,.. 일단 EL 안에 EL을
중복제거 태그 파일 중복 제거 예제 스프링 form태그를 이용해서 태그 파일 두 개를 만들었습니다. 하나는 일반 text, 하나는 password입니다. osaf/ftext.tag <%@ tag pageEncoding=”euc-kr” %> <%@ taglib prefix=”form” uri=”http://www.springframework.org/tags/form” [http://www.springframework.org/tags/form”]; %> <%@ attribute name=”path” required=”true” %> <%@ attribute name=”label” required=”false” %> <%@ attribute name=”size” required=
JSP 태그 파일 배포하기 참조 : http://docs.sun.com/app/docs/doc/819-3669/bnalj?l=ko&a=view [http://docs.sun.com/app/docs/doc/819-3669/bnalj?l=ko&a=view] 1. 작성한 태그 파일을 JAR로 묶기 – META-INF/tags 밑에 또는 그 하위 폴더에 태그 파일을 옮기고 묶는다. 2. TLD 파일을 작성하기 – WEB-INF/tag
Decorating Filter Pattern 6. The Decorating Filter Pattern 참조 – Foundation of JSP Design Patterns – http://java.sun.com/j2ee/patterns/DecoratingFilter.html 패턴의 정의 > Create pluggable filters to process common services in a standard manner without requiring changes to core request processing code. The filters intercept incoming requests and outgoing responses, allowing pre and post-processing. We are able
JSP 5. Development Using Patterns 1. Why Use Patterns? Best Practice니까.. 재사용 하려고.. 의사소통을 위해.. 2. Introducting the J2EE Patterns Catalog http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html Presentation tier :: 데이터를 보여주는 것을 책임지는 계층 Business tier :: 비즈니스 처리를 책임지는 계층 Integration tier :: resource 계층과의 연결을 책임지는 계층 3. Looking at Presentation Design
JSP 2. Using JSP Handling Errors – 에러페이지 만들기 :: <%@ page isErrorPage=”true” %> ${param.from} //myError.jsp – 에러페이지로 포워딩 하기 :: <%@ page errorPage=”/myError.jsp?from=custom.jsp” %> // custom.jsp cm229.jsp [http://whiteship.me/wp-content/uploads/1/cm229.jsp] Including Other Files – Compile Time :: <%@ include file=”myFile.jsp” %> – Runtime :: <%@ include file=”myFile.jsp” flush=true” %> dm213.
Controller DisplayTag 링크 기능 참조 : http://displaytag.sourceforge.net/11/tut_links.html 이런식으로 지정해 주면 detail.do 로 링크가 생기며 이 링크로 객체의 id를 id라는 이름으로 넘겨 줍니다. 이것을 받아서 member 한명에 대한 정보를 뿌리는 controller를 만듭니다. [#M_ more.. | less.. | public class MemberDetailController extends AbstractController{ private MemberRepository memberRepository; @Override protected ModelAndView handleRequestInternal(HttpServletRequest