MapleStory Finger Point

๐ŸŸค JAVA/๐ŸŸค JSP

[JSP] ๊ธฐ๋ณธ(๋‚ด์žฅ) ๊ฐ์ฒด์˜ ์†์„ฑ๊ณผ ์ƒ๋ช…์ฃผ๊ธฐ

HYEJU01 2024. 8. 24. 00:47

 

[ ๊ธฐ๋ณธ๊ฐ์ฒด ์†์„ฑ ์‚ฌ์šฉํ•˜๊ธฐ]

 

 

setAttribute(String name, Object value) ์ง€์ •๋œ ์ด๋ฆ„(name)์œผ๋กœ ์ฃผ์–ด์ง„ ๊ฐ์ฒด(value)๋ฅผ ์ €์žฅ
getAttribute(String name) ์ง€์ •๋œ ์ด๋ฆ„(name)์— ํ•ด๋‹นํ•˜๋Š” ์†์„ฑ ๊ฐ’์„ ๋ฐ˜ํ™˜
removeAttribute(String name) ์ง€์ •๋œ ์ด๋ฆ„(name)์— ํ•ด๋‹นํ•˜๋Š” ์†์„ฑ์„ ์ œ๊ฑฐ
getAttributeNames() ํ˜„์žฌ ๋ฒ”์œ„์—์„œ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ชจ๋“  ์†์„ฑ์˜ ์ด๋ฆ„๋“ค์„ Enumeration ๊ฐ์ฒด๋กœ ๋ฐ˜ํ™˜

 

 

 

 

[ ๊ธฐ๋ณธ๊ฐ์ฒด ์ƒ๋ช…์ฃผ๊ธฐ]

  • page ์˜์—ญ : ํ•˜๋‚˜์˜ JSP ํŽ˜์ด์ง€๋ฅผ ์ฒ˜๋ฆฌํ•  ๋•Œ ์‚ฌ์šฉ  => pageContext
  • request ๊ฐ์ฒด๋Š” ์š”์ฒญ์˜์—ญ๋งˆ๋‹ค ์ƒ์„ฑ๋˜๊ณ  (HTTP ์š”์ฒญ)   => request
  • session ๊ฐ์ฒด๋Š” ๋ธŒ๋ผ์šฐ์ €๋ณ„๋กœ ์ƒ์„ฑ๋˜๊ณ     => session
  • application์€ ํ”„๋กœ๊ทธ๋žจ ์ „์ฒด์—์„œ ๋”ฑ ํ•œ๋ฒˆ ์ตœ์ดˆ ๊ฐ€๋™์‹œ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค   => application