Posts
Q&A
์ปค๋งจ๋ ๊ฐ์ฒด๋ฅผ ์ด์ฉํ ๋ถ๋ถ์์ ์ง๋ฌธ์ ๋๋ค
${member.memId} ์ ๊ฐ์ ํํ์์ JSP์์ Expression Language๋ผ๊ณ ํฉ๋๋ค. ์๊ธด ๊ฒ์ด field(๋ณ์)์ ์ง์ ์ ๊ทผํ๊ฒ ๊ฐ์ด ์๊ฒผ์ง๋ง ์ฌ์ค ๊ทธ๋ ์ง ์์ต๋๋ค. ์ด๋ ํจ์๋ฅผ ์ด์ฉํด์ ์ ๊ทผํ๋ ๋ฐฉ๋ฒ์ผ๋ก JSP Script๋ฅผ ํตํด ํํํ๋ฉด ์๋์ ๊ฐ์ต๋๋ค. ID : ${member.memId} ID : ๋ ์ฝ๋๊ฐ ์๋ก ๊ฐ์ ๊ฒฐ๊ณผ๋ฅผ ๋ณด์ด๋ ๊ฒ์ ํ์ธํ์ค ์ ์์ต๋๋ค.
- Likes
- 0
- Comments
- 1
- Viewcount
- 269
Q&A
doGet๊ณผ doPost๋ฐฉ์์ ๋ํด์ ์ง๋ฌธ ๋๋ฆฝ๋๋ค.
get ๋ฐฉ์์ด ๊ฐ์ง ์ฅ์ ์ค ํ๋๋ '๋ช ํํ ๊ณ ์ url ์ฃผ์๋ฅผ ๊ฐ์ง๊ฒ ๋๋ค' ๊ฐ ์์ ์ ์์ต๋๋ค. ์๋ฅผ ๋ค์ด์ ๋ค์ด๋ฒ๋ธ๋ก๊ทธ์์ ํน์ ๊ธ์ ์ฝ๊ณ ์ถ์ ๋ ์ด๋ฅผ ๊ฐ์ ธ์ค๋ ๋ฐฉ์์ด post๋ผ๋ฉด ๊ทธ url ์ฃผ์๋ ๋๋ฉ์ธ์ฃผ์๋ง ๋ํ๋๊ณ ์ธ๋ถ information ์ ๋ณด๋ค์ Header์ ํฌํจ๋๊ธฐ ๋๋ฌธ์ url์ ํตํด ๋ฐ๋ก ๊ทธ ๋ค์ด๋ฒ๋ธ๋ก๊ทธ์ ๊ธ์ ์ ๊ทผ์ด ๋ถ๊ฐ๋ฅํฉ๋๋ค. ๊ทธ๋ฌ๋ get๋ฐฉ์์ ์ฌ์ฉํ๋ฉด ๊ทธ information ์ ๋ณด๋ค ๊น์ง '?name=value' ์ ํํ๋ก url์ ํํ๋๊ธฐ ๋๋ฌธ์ ๊ทธ ๋ค์ด๋ฒ๋ธ๋ก๊ทธ ๊ธ์ ์ ๊ทผ์ด ๊ฐ๋ฅํฉ๋๋ค. ์๋ง๋ get๋ฐฉ์์ด ์ด์์๋ ์ด์ ์ค ํ๊ฐ์ง๊ฐ ๋ ๊ฒ ๊ฐ๋ค์.
- Likes
- 0
- Comments
- 1
- Viewcount
- 332
Q&A
fetch problem
that movie database server url has changed. so you should change your url like 'https://yts.am/api/v2/list_movies.json?sort_by=rating'In other words 'https://yts.ag/api/v2/list_movies.json?sort_by=rating' is not supported any more. please use 'https://yts.am/api/v2/list_movies.json?sort_by=rating'
- Likes
- 0
- Comments
- 5
- Viewcount
- 724




