[2014-07-28] jstl 문법 오류
뭔가 조금 건드린 것 같은데 자꾸 이런 오류가 뜨는 것이다
org.apache.el.parser.ParseException: Encountered " "}" "} "" at line 1, column 3.
Was expecting one of:
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<STRING_LITERAL> ...
"true" ...
"false" ...
"null" ...
"(" ...
"!" ...
"not" ...
"empty" ...
"-" ...
<IDENTIFIER> ...
아씨.. 대체 뭐지... 검색을 시작했다.
나와 같은 오류를 가진게 아닌가!
답변을 보았다.
---
This is an EL syntax error. It says that it encountered a }
while it was expecting one of the listed identifiers or keywords.
This is most likely caused by the following line:
<!-- <h:commandButton value="Change text" actionListener="#{}" /> -->
The #{}
is indeed an invalid EL expression.
---
음.. 문법 오류라구? 음? #{} ?? 아 이런!!!!!
function download(seq){
var f = document.f;
//f.seq.value = seq;
//f.action = "/download.do?seq=${}";
f.submit();
}
주석 처리했다고 방심을 했다.
웹 브라우저에서 html, jsp 파일의 주석을 처리하기 전에 웹서버에서 코드 내에 존재하는 jstl을 처리한다.
그때 문법 에러가 발견되기 때문에 웹 브라우저에 화면이 뜨기 전에 웹서버의 오류가 뜨는 것이다.