HTTP Status 500 - Unable to compile class for JSP:
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the jsp file: /example2_1.jsp Syntax error on token "contentType", VariableDeclaratorId expected after this token
1: <% @ page contentType="text/html;charset=gb2312"%> 2: <%@page import="java.util.Date"%> 3: <%! Date date; 4: public int continueSum(int start,int end){ An error occurred at line: 1 in the jsp file: /example2_1.jsp contentType cannot be resolved to a type
第一行的<% @ page contentType="text/html;charset=gb2312"%> 中"%"和"@"中间不能有空格