java

jsp - include

dev_summer 2020. 10. 30. 17:02

 

* include ์ง€์‹œ์–ด p.157

jspํŒŒ์ผ ๋˜๋Š” htmlํŒŒ์ผ์„ ํ•ด๋‹น jspํŽ˜์ด์ง€์— ์‚ฝ์ž…ํ• ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๋Š” ์ง€์‹œ์–ด์ด๋‹ค.

ํ™”๋ฉด์— ๊ณตํ†ต์ ์œผ๋กœ ๋‚˜ํƒ€๋‚˜๋Š” ๋ฉ”๋‰ด๋ฐ” ์ฝ”๋“œ๋ฅผ include์ง€์‹œ์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๊ฐ€๋…์„ฑ์ด ์ข‹๊ณ  ๊ณตํ†ต๋˜๋Š” ๋ถ€๋ถ„์„ ํฌํ•จ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค.

์ด๋•Œ ํฌํ•จ๋˜๋Š” ํŒŒ์ผ๋“ค์€ ์‹ค์ œ ์ปดํŒŒ์ผ ๊ณผ์ •์„ ๊ฑฐ์ณ์„œ ๊ทธ ๊ฒฐ๊ณผ๊ฐ€ ํ•ด๋‹น jspํŽ˜์ด์ง€์— ํฌํ•จ๋˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ jsp์ฝ”๋“œ๊ฐ€ ํ•ด๋‹นjspํŽ˜์ด์ง€์— ๋ณต์‚ฌ๋˜์–ด ๋”ํ•ด์ง€๋ฏ€๋กœ ์„œ๋ธ”๋ฆฟ ์ปดํŒŒ์ผ ์‹œ ํ•œ๋ฒˆ์— ์ปดํŒŒ์ผ ๋œ๋‹ค.

๋ณ€์ˆ˜๋กœ์„œ๋„ ํ™œ์šฉ์ด ๊ฐ€๋Šฅํ•˜๋ฉฐ includeํŒŒ์ผ์€ ํ•ฉ์ณ์„œ ์ปดํŒŒ์ผ ๋˜๋ฏ€๋กœ /body, /html์ด ์—†์Œ์— ์œ ์˜ํ•ด์•ผํ•œ๋‹ค.

include์—์„œ ๊ฒฝ๋กœ ์ฐพ๋Š” ๊ธฐ๋ฒ•๊ณผ html๊ฒฝ๋กœ์ฐพ๋Š” ๊ธฐ๋ฒ•์ด ๋‹ค๋ฅด๋‹ค.

 

*๋ถ€ํŠธ์ŠคํŠธ๋žฉ ์ฐธ๊ณ  ์ฝ”๋“œ

https://www.w3schools.com/bootstrap4/bootstrap_forms.asp

 

์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํ•œ๊ธ€ ๊ฒ€์ฆ , html์—์„œ ์ œ๊ณต ํ•˜์ง€ ์•Š๋Š”๋‹ค.

https://namget.tistory.com/entry/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%ED%8A%B9%EC%88%98%EB%AC%B8%EC%9E%90%EC%88%AB%EC%9E%90%ED%95%9C%EA%B8%80%EC%98%81%EC%96%B4-%EC%B2%B4%ED%81%AC

 

 

๊ธฐ๋ณธ์ ์œผ๋กœ ์ œ์ด์ฟผ๋ฆฌ์—์„œ ํ•œ๊ธ€์„ ๋ง‰์•„์ค€๋‹ค. type๋ฅผ text๋กœ ๋ฐ”๊ฟ” ํ™•์ธํ•ด๋ณด์Ÿˆ

 

 

 

 

include

 

'java' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

JAVA - Exception ์ข…๋ฅ˜  (0) 2020.11.09
JSP - ๊ฐœ๋…์ •๋ฆฌ  (0) 2020.11.09
jsp- request๊ฐ์ฒด  (0) 2020.10.30
jsp ๋‚ด์žฅ๊ฐ์ฒด ์ด์šฉํ•˜๊ธฐ  (0) 2020.10.30
jsp ๊ธฐ์ดˆ  (0) 2020.10.30