HTTP Status 500 - /jsp_01.jsp (line: 1, column: 2) Unterminated <%@ page tag

HTTP Status 500 - /jsp_01.jsp (line: 1, column: 2) Unterminated <%@ page tag

错误 新人进入求解
代码:
<%@ page language=“java” contentType=“text/html; charset=UTF-8”
pageEncoding=“UTF-8”% import=“java.util.Date”%>

第一个jsp页面 <%! int sum=0; int x=1; %> <% while(x<=10){ sum+=x; x++; } %> 1-10的和是:<%=sum%>
当前的系统时间事:<%=new Date() %>

错误

HTTP Status 500 - /jsp_01.jsp (line: 1, column: 2) Unterminated <%@ page tag

type Exception report

message /jsp_01.jsp (line: 1, column: 2) Unterminated <%@ page tag

description The server encountered an internal error that prevented it from fulfilling this request.

exception
org.apache.jasper.JasperException: /jsp_01.jsp (line: 1, column: 2) Unterminated <%@ page tag
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:443)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:133)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:503)
org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1762)
org.apache.jasper.compiler.Parser.parse(Parser.java:135)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:119)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:194)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs.

Apache Tomcat/7.0.59

你可能感兴趣的:(HTTP Status 500 - /jsp_01.jsp (line: 1, column: 2) Unterminated <%@ page tag)