โ main.jsp >>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!-- ์ฌ๊ธฐ๋...Servlet extends HttpServlet ์ด ์๋ต๋์ด ์์ -->
<jsp:include page="/include/top.jsp"></jsp:include>
<h1>์ ๋ชฉ</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Quod ullam placeat cum pariatur at nulla eum iure neque rerum
corrupti veritatis fuga doloremque esse explicabo ut quia aspernatur numquam enim.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum dignissimos
molestias aspernatur voluptatem iure officia cumque fugit neque sint excepturi ut
eaque facilis rem illo at nostrum qui odit ab!</p>
<!-- contextpath๋ ์๋ต ๊ฐ๋ฅ / webapp ์๋์ ๊ฒฝ๋ก๋ฅผ ์ค์ผํจ -->
<jsp:include page="/include/bottom.jsp"></jsp:include>
โ top.jsp >>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Top.jsp์์ ์ ํ ์ ๋ชฉ</title>
</head>
<body>
<table border="1">
<tr>
<th>๋ฉ๋ด์๊ฐ</th>
<th>์ฐพ์์ค์๋ ๊ธธ</th>
<th>์ฒด์ธ์ </th>
<th>์ฌ์ดํธ๋งต</th>
<th>๊ณ ๊ฐ์ผํฐ</th>
</tr>
<tr>
<th>
<ul>
<li>Side menu1</li>
<li>Side menu2</li>
<li>Side menu3</li>
<li>Side menu4</li>
<li>Side menu5</li>
</ul>
</th>
<td colspan="4">
<!-- ์ฌ๊ธฐ๋ top.jsp์ด๊ธฐ ๋๋ฌธ์ ์ดํ๋ ์ง์๋๋๋ค -->
โ bottom.jsp >>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
</td>
</tr>
<tr>
<th colspan="5">
์ ํ๋ฒํธ : 123-1234-1234 | ์ฌ์
์๋ฑ๋ก๋ฒํธ : 123-123-123
| FAX : 1234-123-1234 ...
</th>
</tr>
</table>
</body>
</html>
๐บ main.jsp ์คํ ๊ฒฐ๊ณผ >>