๋ฌธ์
1. web.xml ์ด ์ฝ๋ ์๋ํฐ ํ์์ผ๋ก ์ด๋ฆฌ์ง ์์์ ์์ ์ด ์ด๋ ค์ด ๋ฌธ์
2. Maven Project ์์ pom.xml ํ์ผ์ด Maven POM Editor ๋ก ์ด๋ฆฌ๋ ๋ฌธ์
Eclipse Dynamic Web Project์์ `jsp`ํ์ผ ๋๋ `xml` ํ์ผ์ ์ด์๋๋ฐ ํ
์คํธ๋ฅผ ํธ์ง ํ ์ ์๋ ์๋ํฐ๋ก ์ด๋ฆฌ์ง ์๊ณ ์๋์ ๊ฐ์ด Node ๋ Content ๊ตฌ์กฐ๋ก ์ด๋ฆฌ๋ ๋ฌธ์
๋ Maven ํ๋ก์ ํธ์์ pom.xml ํ์ผ์ด xml ํ
์คํธ ์๋ํฐ ๋์ Maven POM Editor๋ก ์ด๋ฆฌ๋ ํ์
๋๋ ์ด๊ฒ ๋ ์์๋ณด๊ธฐ ํ๋ค๊ณ ๋ช
ํํ์ง ์๋ค๊ณ ์๊ฐํด์ xml ์ฝ๋๋ฅผ ์ง์ ์์ ํ๋ ๊ฒ์ ์ ํธํ๋ค.
์๋์ ๊ฐ์ด ์ผ๋ฐ text Editor ๋ก ์ด๋ ค์ ํ๊ทธ ์ธ์์ด ์ ๋๋ ๊ฒฝ์ฐ๋ ๊ฐ์ ํด๊ฒฐ๋ฒ์ ์ฐ๋ฉด ๋๋ค.
ํด๊ฒฐ๋ฒ
web.xml ํ์ผ์ด๋ jsp ํ์ผ์
ํ๋ฉด ํ๋จ์ Design ํญ์ Source ํญ์ผ๋ก ์ ํํ๋ฉด ํ
์คํธ ์๋ํฐ ํ์์ ํธ์ง์ฐฝ์ผ๋ก ๋์ด๊ฐ๋ค.
์ด๋ ๊ฒ ํ๋ฉด ์ฝ๊ฒ ์ฝ๋ ์์ ์ด ๊ฐ๋ฅํ๋ค.
์ด ์ธ์๋ ๋ค๋ฅธ ์๋ํฐ๋ก ์ด๊ณ ์ถ์ผ๋ฉด web.xml ํ์ผ ์ฐํด๋ฆญ > [Open With] > ์์ ์ํ๋ ํ์์ ์ ํํ๋ฉด ๋๋ค.
Maven ํ๋ก์ ํธ์์ pom.xml ํ์ผ์ด Maven POM Editor๋ก ์ด๋ฆฌ๋ ๊ฒฝ์ฐ ๋ํดํธ ํ๋ก๊ทธ๋จ์ XML Editor๋ก ๋ฐ๊พธ๋ ๋ฒ โผ
[Window] > [Preference] > [Editor] > [File Associations] > File types: pom.xml ์ ํ > Associated editors: XML Editor ์ ํ > [Apply and Close]
xml ์ฐฝ์ ์ข
๋ฃํ๊ณ ๋ค์ ์ด๋ฉด
pom.xml ํ์ผ์ด xml Editor ์์ ์ด๋ฆฐ๋ค.
๊ทธ๋ฆฌ๊ณ ํ๊ทธ๋ ํ
์คํธ๊ฐ ๊ตฌ๋ถ ์ธ์ ๋์ด ๊น๋ํ๊ณ ํธ์ง์ด ์ฝ๋ค.