jsp报错example1.jsp(2,1) Unterminated <%@ page tag怎么回事?
jsp代码如下
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="tom.jiafei.*">
<HTML><BODY bgcolor=cyan>
<jsp:useBean id="girl" class="tom.jiafei.Circle" scope="page">
</jsp:useBean>
<% girl.setRadius(100);%>
圆的半径是:<%=girl.getRadius()%>
<br>圆的周长是:<%=girl.circleLength()%>
<br>圆的面积是:<%=girl.circleArea()%>
</BODHTTP Status 500 -
--报错信息如下------------------------------------------
type Exception report
message
description
The server encountered an internal error () that prevented it from fulfilling this request.exception
org.apache.jasper.JasperException: /example1.jsp(2,1) Unterminated <%@ page tag
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:477)
org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1748)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
--------------------------------------------
Apache Tomcat/6.0.29Y></HTML>
------解决方案--------------------org.apache.jasper.
JasperException: /example1.jsp(2,1) Unterminated <%@ page tag
是不是有中文符号?
------解决方案--------------------<%@ page import="tom.jiafei.*">
右边漏了个%
------解决方案--------------------我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html