org.apache.jasper.JasperException:

pickylemon·2024년 5월 24일

Exception 모음

목록 보기
22/31

org.apache.jasper.JasperException:
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:299)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:99)
at org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:288)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:250)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:168)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:159)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1255)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1475)
at org.apache.jasper.compiler.Parser.parse(Parser.java:144)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:245)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:106)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:207)

상황

  • Validation에 대한 error message를 jsp에 출력하고자 join.jsp(회원가입 뷰) form태그를 form:form태그로 변경한 상황
  • join.jsp를 파싱하는데 오류가 발생

원인 및 해결

  • form:form태그를 쓸 때는 action부분에 <c:url> 태그를 쓰거나 <%= %>로 contextPath를 넣은 주소를 넣으면 오류가 나는 것 같다.

  • ${pageContext.request.contextPath} el표현식으로 contextPath를 넣어주어야 에러가 발생하지 않는다.

[참고]

profile
안녕하세요

0개의 댓글