'2010/07/05'에 해당되는 글 6건

  1. 2010.07.05 include directive vs include action tag


<%@ 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>
<style type="text/css">
 a {
  text-decoration: none;
  font-weight: bold;
  color:green;
 }
 a:hover {
  text-decoration:  underline;
  font-weight: bold;
  color:red;
 }
</style>
</head>
<body>
<p>이것은 좋은 메뉴</p>
<ul>
 <li><a href="page1.jsp">page 1</a></li>
 <li><a href="page2.jsp">page 2</a></li>
 <li><a href="page3.jsp">page 3</a></li>
 <li><a href="page4.jsp">page 4</a></li>
</ul>
</body>
</html>

<%@ 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 border="1">
 <tr>
  <td>
   include directive
  </td>
  <td>
   <!-- 변수가 공유 된다. -->
   <%@ include file="menu.jsp" %>
  </td>
 </tr>
 <tr>
  <td>
   include action tag
  </td>
  <td>
   <!-- 변수가 공유 되지 않는다. -->
   <jsp:include page="menu.jsp" flush="false"/>
  </td>
 </tr>
</table>


</body>
</html>

Posted by ▶파이팅◀
이전버튼 1 2 3 4 5 6 이전버튼

블로그 이미지
Let's start carefully from the beginning
▶파이팅◀

태그목록

공지사항

Yesterday
Today
Total

달력

 « |  » 2010.7
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 29 30 31

최근에 올라온 글

최근에 달린 댓글

글 보관함