MapleStory Finger Point

๐ŸŸค JAVA/๐ŸŸค JSP

[JSP] ํ•„ํ„ฐ (Filter) ๋ž€?

HYEJU01 2024. 8. 24. 00:55

โ—ˆ ํ•„ํ„ฐ๋ž€

HTTP ์š”์ฒญ, ์‘๋‹ต์„ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ๋Š” ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅ ํด๋ž˜์Šค

์š”์ฒญ ----- ์ตœ์ข…์ •๋ณด ์‚ฌ์ด์— ์œ„์น˜ํ•˜์—ฌ....

 

 

 

โ—ˆ ํ•„ํ„ฐ ์ƒ์„ฑ ๋ฐฉ๋ฒ•

1. ํ•„ํ„ฐ ํด๋ž˜์Šค๋Š” ์ผ๋ฐ˜ ์ž๋ฐ” ํŒŒ์ผ๋กœ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

2. Filter ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์ƒ์† ๋ฐ›์Šต๋‹ˆ๋‹ค

3. ์ผ๋ฐ˜์ ์œผ๋กœ doFilter๋ฉ”์„œ๋“œ๋ฅผ ์˜ค๋ฒ„๋ผ์ด๋”ฉ ํ•ฉ๋‹ˆ๋‹ค

4. ์‚ฌ์šฉ ํ›„ doFilter(request, response); ๋ฉ”์„œ๋“œ๋ฅผ ๋ฐ˜๋“œ์‹œ ์‚ฌ์šฉํ•œ๋‹ค

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

โ—ˆ ํ•„ํ„ฐ ์—ฌ๋Ÿฌ๊ฐœ ๋“ฑ๋กํ•˜๋Š” ๋ฐฉ๋ฒ•