인프런 커뮤니티 질문&답변

dd hold님의 프로필 이미지

작성한 질문수

JSP 강의평가 웹 사이트 개발하기

MySQL과 JSP 연동 및 실습

이런 오류가 뜨는데 타이핑이 잘못된건가요??

18.06.30 20:58 작성

·

168

0

Stacktrace:] with root cause

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [14] in the generated java file: [D:UsersWH_Laptopeclipse-workspace.metadata.pluginsorg.eclipse.wst.server.coretmp1workCatalinalocalhostHello_WorldorgapachejspuserJoinAction_jsp.java]

Only a type can be imported. user.UserDTO resolves to a package

An error occurred at line: [15] in the generated java file: [D:UsersWH_Laptopeclipse-workspace.metadata.pluginsorg.eclipse.wst.server.coretmp1workCatalinalocalhostHello_WorldorgapachejspuserJoinAction_jsp.java]

Only a type can be imported. user.UserDAO resolves to a package

An error occurred at line: [24] in the jsp file: [/userJoinAction.jsp]

UserDAO cannot be resolved to a type

21: script.close();

22: return;

23: }

24: UserDAO userDAO = new UserDAO();

25: int result = userDAO.join(userID, userPassword);

26: if(result == 1) {

27: PrintWriter script = response.getWriter();

An error occurred at line: [24] in the jsp file: [/userJoinAction.jsp]

UserDAO cannot be resolved to a type

21: script.close();

22: return;

23: }

24: UserDAO userDAO = new UserDAO();

25: int result = userDAO.join(userID, userPassword);

26: if(result == 1) {

27: PrintWriter script = response.getWriter();

답변

답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!
dd hold님의 프로필 이미지

작성한 질문수

질문하기