๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ž๋ฐ” ์„œ๋ธ”๋ฆฟ1

WAS ๋™์ž‘๊ณผ์ • / ์„œ๋ธ”๋ฆฟ(Servlet) / Servlet ๊ตฌํ˜„ / ์„œ๋ธ”๋ฆฟ ์ปจํ…Œ์ด๋„ˆ ๋ชฉ์ฐจ WAS ๋™์ž‘ ๊ณผ์ • ์„œ๋ธ”๋ฆฟ(Servlet) Servlet ๊ตฌํ˜„ ๋ฐฉ๋ฒ• ์„œ๋ธ”๋ฆฟ ์ƒ๋ช…์ฃผ๊ธฐ(Servlet LifeCycle) ์„œ๋ธ”๋ฆฟ ์ปจํ…Œ์ด๋„ˆ(Servlet Container) WAS ๋™์ž‘ ๊ณผ์ • ์›น ์„œ๋ฒ„๋กœ๋ถ€ํ„ฐ ์š”์ฒญ์ด ๋“ค์–ด์˜ค๋ฉด ์ปจํ…Œ์ด๋„ˆ๊ฐ€ web.xml์„ ์ฐธ์กฐํ•˜์—ฌ Servlet์— ๋Œ€ํ•œ Thread๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ์š”์ฒญ(httpServletRequest) ๋ฐ ์‘๋‹ต(httpServletResponse) ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ „๋‹ฌํ•œ๋‹ค. ํ˜ธ์ถœ๋œ ์„œ๋ธ”๋ฆฟ์˜ ์ž‘์—…์„ ๋‹ด๋‹นํ•˜๊ฒŒ ๋œ ์Šค๋ ˆ๋“œ๋Š” ๊ทธ์— ๋งž๋Š” doGet() ๋˜๋Š” doPost() ๋ฉ”์†Œ๋“œ๋ฅผ ํ˜ธ์ถœํ•ด ์ƒ์„ฑ๋œ ๋™์  ํŽ˜์ด์ง€๋ฅผ Response ๊ฐ์ฒด์— ๋‹ด์•„ ์ปจํ…Œ์ด๋„ˆ์— ์ „๋‹ฌํ•œ๋‹ค. ์ปจํ…Œ์ด๋„ˆ๋Š” ์ „๋‹ฌ ๋ฐ›์€ Response ๊ฐ์ฒด๋ฅผ HttpResponse ํ˜•ํƒœ๋กœ ๋ฐ”๊พธ์–ด Web Server์— ์ „๋‹ฌํ•˜๊ณ  ์ƒ์„ฑ๋œ.. 2022. 1. 24.