当前位置: 代码迷 >> J2EE >> jsp报错example1.jsp(2,1) Unterminated <%@ page tag咋回事
  详细解决方案

jsp报错example1.jsp(2,1) Unterminated <%@ page tag咋回事

热度:104   发布时间:2016-04-22 01:22:12.0
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 &lt;%@ 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 &lt;%@ page tag

是不是有中文符号?
------解决方案--------------------
<%@ page import="tom.jiafei.*">
右边漏了个%


------解决方案--------------------
探讨
<%@ page import="tom.jiafei.*">
右边漏了个%

代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
  相关解决方案