[JSP] include 지시어 테스트
카테고리 없음 2018. 4. 12. 03:17 |03_includemain.jsp
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 | <%@page import="java.util.Date"%> <%@page import="java.text.SimpleDateFormat"%> <%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> </head> <body> <center> <h2>include 지시어 테스트</h2> <hr> <!-- include는 현재 페이지내에 다른 페이지를 삽입할 때 사용된다 --> <%@ include file="03_include2.jsp" %> // menu <p> <table border=0 cellpadding=5 cellspacing=1> <tr> <td><font size=-1><%@include file="03_include3.jsp" %></font></td> // news <td width="30"> </td> <td><font size=-1><%@include file="03_include4.jsp" %></font></td> // shopping </tr> </table> </center> </body> </html> | cs |
03_include2.jsp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <%@page import="java.util.Date"%> <%@page import="java.text.SimpleDateFormat"%> <%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> </head> <body> <center> <h2>menu</h2> </center> </body> </html> | cs |
03_include3.jsp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <%@page import="java.util.Date"%> <%@page import="java.text.SimpleDateFormat"%> <%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> </head> <body> <center> <h2>news</h2> </center> </body> </html> | cs |
03_include4.jsp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <%@page import="java.util.Date"%> <%@page import="java.text.SimpleDateFormat"%> <%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> </head> <body> <center> <h2>shopping</h2> </center> </body> </html> | cs |