< 에러 메시지 >
4월 13, 2024 6:46:48 오후 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: 서블릿 [jsp]을(를) 위한 Servlet.service() 호출이 예외를 발생시켰습니다.
org.apache.jasper.JasperException: JSP를 위한 클래스를 컴파일할 수 없습니다.:
JSP 파일 [/WEB-INF/views/output.jsp]의 [27] 행에서 오류가 발생했습니다.
eAmount cannot be resolved to a variable
24: </tr>
25: <tr>
26: <td colspan="2"><b>사용량(KWh)</b></td>
27: <td colspan="2"><%=eAmount%> KWh</td>
28: </tr>
29: <tr>
30: <td colspan="2"> <b>정액할인</b> </td>
< 원인 >
<%=eAmount%>를 RequestParm해준 값을 보내기는 했는데 받아서 넣어주는 코드를 빼먹음
<%
String measureDate = request.getParameter("measureDate");
%>
< 해결 >
<%
String measureDate = request.getParameter("measureDate");
String eAmount = request.getParameter("eAmount");
%>
measureDate처럼 html상단에 Parameter에서 가져온 값을 넣어준다
'에러 모음' 카테고리의 다른 글
[SQL] SQL Error [1007] [HY000] (0) | 2024.04.17 |
---|---|
[docker] Error response from daemon: Conflict. (0) | 2024.04.16 |
java.lang.NullPointerException (0) | 2024.04.10 |
org.springframework.boot:spring-boot-gradle-plugin:3.2.4 (0) | 2024.04.10 |
o.s.b.d.LoggingFailureAnalysisReporter (0) | 2024.04.09 |