일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Kubernetes Engine
- Amazon Web Service
- 아마존웹서비스
- Compute Engine
- Google Cloud Platorm
- playbook
- AWS 자격증
- AWS Solution Architect
- AWS Certificate
- Solution Architect Certificate
- ansible
- GKE
- Google Cloud Platrofm
- kubernetes
- Reverse Proxy
- Cloud Spanner
- Cloud SQL
- Solution Architect
- AWS
- VPC
- Cloud Storage
- 앤서블
- gcp
- Cloud Bigtable
- Google Cloud
- AWS Database
- Google Cloud Platform
- container
- 리버스 프록시
- Cloud Datastore
- Today
- Total
sungwony
JSP 파일의 재사용 본문
1) The include directive :
<%@ include file="header.html" %>
Static : adds the content from the value of the file attribute to the current page at translation time. The directive was originally intended for static layout templates, like HTML headers.
=> 정적 : 현재 페이지의 변환시간(translation time)에 파일 속성의 값(header.html)으로부터 컨텐츠를 추가한다. 이 지시어는 본래 정적 HTML 해더와 같이 정적인 템플릿을 위한 것이다.
2) The <jsp:include> standard action :
<jsp:include page="header.jsp"/>
Dynamic : adds the content from the value of the page attribute to the current page at request time. Was intended more for dynamic content coming from JSP's.
=> 동적 : 현재 페이지의 요청시간(request time)에 파일 속성의 값(header.jsp)으로부터 컨텐츠를 추가한다. JSP의 동적인 컨텐츠를 위한 것이다.
3) The <c:import> JSTL tag :
<c:import url="http://www.example.com/ex.html" />
Dynamic : add the content from the value of the URL attribute to the current Page, at request time. It works a lot like <jsp:include>, but it's more powerful and flexible : unlike the otherr two includes, the <c:import> url can be from outside the web Container!
4) Preludes and codas :
Static : preludes and codas can be applied only to the beginnings and ends of pages. You can implicitly include preludes (also called headers) and codas (also called footers) for a group of JSP pages by adding <include-prelude> and <include-coda> elements respectively within a <jsp-property-group> element in the Web application web.xml deployment descriptor.
'development > 웹프로그래밍' 카테고리의 다른 글
[웹프로그래밍]JSP 액션 태그의 사용 (0) | 2017.05.29 |
---|---|
[웹프로그래밍]포워딩과 인클루딩 (0) | 2017.05.26 |
[웹프로그래밍]JSP (0) | 2017.05.23 |
[웹프로그래밍] 필터 (0) | 2017.05.23 |
[웹프로그래밍] 리프래시 / 리다이렉트 (0) | 2017.05.23 |