-
<%@ page language = "java" contentType = "text/html; charset=utf-8" pageEncoding = "utf-8" trimDirectiveWhitespaces = "true" %>
- trimDirectiveWhitespaces - 소스보기 시 프로그램 코드 공백을 제거한다. (JSP 2.1 이상)
-
<% String path = request.getRequestURI().substring( 0 , request.getRequestURI().lastIndexOf( "/" ) + 1 ).replace( "/contents" , "" ); %>
- css , 이미지 등 파일연결에 사용할 현재경로 리턴
-
A = request.getRequestURI() =
/contents/open_contents/001/002/index.jsp
-
B = A.lastIndexOf( "/" ) + 1 =
32
-
C = A.substring( 0 , B ) =
/contents/open_contents/001/002/
-
D = C.replace( "/contents" , "" ) =
/open_contents/001/002/
-
<%
String loginPath = "/contents/open_contents/006/001/";
String joinPath = "/contents/open_contents/006/002/";
String findPWPath = "/contents/open_contents/006/003/";
String logoutPath = "/contents/open_contents/006/004/";
String modifyPath = "/contents/open_contents/006/005/";
String withdrawPath = "/contents/open_contents/006/006/";
String invalidatePath = "/contents/open_contents/006/007/";
%>
- 회원관련 메뉴 경로
- 경로 변경을 대비해 변수를 사용
-
<link rel="shortcut icon" href="/images/common/favicon.ico" />
<link rel="apple-touch-icon-precomposed" href="/images/common/ios-ipad-144x144.png" />
<link rel="apple-touch-icon-precomposed" href="/images/common/ios-iphone-114x144.png" />
<link rel="apple-touch-icon-precomposed" href="/images/common/ios-default-homescreen-57x57.png" />
-
<meta name="viewport" content="initial-scale=1, width=device-width, user-scalable=no" />
- 화면 확대정도 , 최대 확대비율 , 최소 확대비율등을 다루는 meta data에 속하는 속성
-
<meta name="robots" content="noindex" />
-
<title>
<%
if ( depth_03.equals( "" ) ) {
if( depth_02.equals( "" ) ) {
out.print( depth_01 );
} else {
out.print( depth_02 );
}
} else {
out.print( depth_02 + " - " + depth_03 );
}
%>
</title>
-
<div id="top">
- width 100% 영역
- 화면 끝과 끝을 잇는 border 나 background-image 를 넣을 수 있는 영역
-
<div id="header">