์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- database
- execCommand
- setTimeout()
- eport
- Import
- await
- async
- ๊ฒ์
- js
- JS #ํ๋ก์ ํธ
- ajax
- ๋น๋๊ธฐ
- ๋๊ธฐ
- https://m.blog.naver.com/tt2t2am1118/221010125300
- callback
- Porject
- addEventListener
- https://youtube.com/playlist?list=PLuHgQVnccGMA5836CvWfieEQy0T0ov6Jh&si=FTaYv8m21EhO-A2K
- object
- webpack
- db
- json
- promise
- slow and steady
- prj
- Project
- mysql
- ์ฐธ๊ณ ๋ธ๋ก๊ทธ
- ํผํ
- sql
- Today
- Total
C-log
3week ๋ณธ๋ฌธ
JSP์ ์ญํ ์ ํฐ์บฃ์ ๊ธฐ๋ฐ์ผ๋ก ๋์ํ๋ฉฐ ํฌ๋กฌ์์ HTTP request ํ๋กํ ์ฝ์ ๋ฐ์์ ์ฒ๋ฆฌํ์ฌ HTTP response ํ๋กํ ์ฝ์ ๋ง๋ค์ด์ ํฌ๋กฌ์ ์ ๋ฌํ๋ค. ํฌ๋กฌ V8์ ๊ธฐ์ค์ผ๋ก js์ html,css๊ฐ ๋์๊ฐ๋ ๊ฒ์ด๋ค.
# ํ๊ธ ํ๊ธฐ๋ฅผ ๊นจ์ง์ง ์๊ณ ์ ๋์ ๊ฐ ์ ์๊ฒ ์ฝ๋๋ฅผ ์์ฑ
<%@ page contentType="text/html; charset=utf-8" %>
<html>
<head>
<title>Directives Tag</title>
</head>
<body>
<h2>contentType ๋๋ ํฐ๋ธ ํ๊ทธ</h2>
<h4>text/html : HTML ์ถ๋ ฅ</h4>
<h4>charset=utf-8 : ๋ฌธ์ ์ธ์ฝ๋ฉ</h4>
</body>
</html>
<%@ page pageEncoding= "utf-8"%>
<html>
<head>
<title>Directives Tag</title>
</head>
<body>
<h2>contentType ๋๋ ํฐ๋ธ ํ๊ทธ</h2>
<h4>text/html : HTML ์ถ๋ ฅ</h4>
<h4>charset=utf-8 : ๋ฌธ์ ์ธ์ฝ๋ฉ</h4>
</body>
</html>
์ด๋ ๊ฒ ๋๊ฐ์ง ๋ฐฉ๋ฒ์ด ์์ง๋ง ์ฒซ ๋ฒ์งธ ๋๋ ํฐ๋ธ๋ ๋ธ๋ผ์ฐ์ ์ ์ ์ก๋๋ ์ฝํ ์ธ ์ ํ์ ๊ณผ ํด๋น ์ฝํ ์ธ ์ ๋ฌธ์ ์ธ์ฝ๋ฉ์ ์ค์ ํ๋ ๋ฐ๋ฉด, ๋ ๋ฒ์งธ ๋๋ ํฐ๋ธ๋ JSP ํ์ด์ง ๋ด์ ์์ค ์ฝ๋์ ์ธ์ฝ๋ฉ์ ์ค์ ํฉ๋๋ค.
# ์ธ๋ถ jspํ์ผ์ ํฌํจ ์์ผ๋ณด์
<%@ page contentType="text/html; charset=utf-8"%>
<html>
<head>
<title>Directives Tag</title>
</head>
<body>
<h4>ํค๋ ํ์ด์ง ์์ญ์
๋๋ค</h4>
</body>
</html>
์์ ์ฝ๋์ฒ๋ผ include01_ header.jspํ์ผ์ ์์ฑํ๊ณ ์ด ํ์ผ์ include01.jspํ์ผ์ ํฌํจ ์์ผ๋ณด๋ ค๊ณ ํ๋ค.
<%@ page contentType="text/html; charset=utf-8"%>
<html>
<head>
<title>Directives Tag</title>
</head>
<body>
<%@ include file="include01_header.jsp"%>
<h4>---------- ํ์ฌ ํ์ด์ง ์์ญ -------------</h4>
</body>
</html>
์์ ์ฝ๋ ์ฒ๋ผ <%@ include file="include01_header.jsp"%>๋ฅผ ์ฝ์ ํด์ include01_ header.jspํ์ผ์ ๊ฐ์ ธ์ฌ ์ ์๋ค. ์ด๋ ๊ฒ ์ฝ๋๋ฅผ ์์ฑํ๊ณ ํฐ์บฃ์ ํตํด์ ํฌ๋กฌ์ผ๋ก ๋ธ๋ผ์ฐ์ ์ ๋์ฐ๋ฉด ์๋์ ๊ฐ์ ๊ฒฐ๊ณผ๊ฐ ๋์จ๋ค.