<!--<jsp:include page="toDay.jsp" flush="true" />-->
<%@ include file="toDay.jsp"%>요롷케하든지~
toDay.jsp
<%@ 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">
<%@page import="java.util.Calendar"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body style="font-size:9pt" bgColor="lightsteelblue">
<%
Calendar now = Calendar.getInstance();
int y = now.get(Calendar.YEAR);
int m = now.get(Calendar.MONTH)+1;
int d = now.get(Calendar.DAY_OF_MONTH);
%>
<font color="white"><b><%=y %>년<%=m %>월<%=d %>일</b></font>
</body>
</html>
includeTest1.jsp
<%@ 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">
<title>Insert title here</title>
</head>
<body>
<table table width="400" align="center" border="1">
<tr>
<td>
Include연습!!
</td>
</tr>
<tr>
<td>
<jsp:include page="toDay.jsp" flush="true"/>
</td>
</tr>
</table>
</body>
</html>
'Programing > JSP' 카테고리의 다른 글
JSP - page, session, application 간의 차이 (0) | 2008.07.29 |
---|---|
JSP - Bean활용 (0) | 2008.07.29 |
JSP - forward (2) | 2008.07.29 |
JSP - 간단 HTML과 JSP (0) | 2008.07.29 |
JSP - JSP입문 (0) | 2008.07.29 |