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

cobogsil님의 프로필 이미지

작성한 질문수

실전 JSP (renew ver.) - 신입 프로그래머를 위한 강좌

JSP 스크립트

system.out.println 에러

22.04.04 22:20 작성

·

1.8K

0

강의 중 나오는 선언 태그 내 system.out.println~ 구문에서 에러가 발생합니다.

page 지시어로 java.lang.* 을 추가했는데도 실행이 안되네요 ㅠㅠ

왜 이럴까요..

 

 

Type Exception Report

Message JSP를 위한 클래스를 컴파일할 수 없습니다.:

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: JSP를 위한 클래스를 컴파일할 수 없습니다.: 

JSP 파일 [/jspEx.jsp]의 [22] 행에서 오류가 발생했습니다.
System.out cannot be resolved to a type
19: 	ArrayList<String> list = new ArrayList<String>();
20: 	
21: 	public void jspMethod() {
22: 		System.out.println("-- jspMethod() --");
23: 	}
24: 	%>
25: 	

답변 2

0

Choi근욱님의 프로필 이미지

2024. 01. 23. 15:15

해결하셨는지 모르겠지만 제가 첨부한 글 참고하시길 바랍니다.

https://velog.io/@sonyak-ku/Unrecognized-option-add-opens-when-passed-with-JAVAOPTIONS

0

동헌님의 프로필 이미지

2023. 10. 30. 16:02

저도 그러네요 얼른 답변 해주세요

cobogsil님의 프로필 이미지

작성한 질문수

질문하기