본문 바로가기

Code 해결

import javax.servlet. cannot be resolved

문득 

import javax.servlet. cannot be resolved이러면서

import javax.servlet.*

로 빨간줄이 갈 때가 있음

원인은 Path를 잘못 잡아줘서 그렇다.


톰캣의 jar 파일을 프로젝트로 이끌어오면 해결됨.


프로젝트 오른쪽 클릭 Configure build Path -> Java Build Path -> Libaries -> Add External JARs...

-> 톰캣폴더\lib\ 찾기 -> jsp-api.jar, servlet-api.jar를 넣어주면 됨


참조 : http://blog.naver.com/skybrend/90174043355

'Code 해결' 카테고리의 다른 글

There is no statement named  (0) 2013.07.09
Some resources were not updated.  (0) 2013.06.26
jsp 한글깨짐  (0) 2013.06.04
ResultSet.next가 호출되지 않았음  (0) 2013.05.27
The Network Adapter could not establish the connection  (0) 2013.05.27