jsp问题 什么错误啊 谢谢了 加分的

A Servlet Exception Has Occurred
org.apache.jasper.compiler.CompileException: C:\tomcat4\webapps\ROOT\index.jsp(38,0) C:\tomcat4\webapps\ROOT\index_Top.jsp(0,0) Page directive: can't have multiple occurrences of contentType
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:774)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:121)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1105)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1066)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:217)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:220)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:159)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:171)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:328)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:251)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:242)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:818)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:536)

26 浏览 1 回复
  java   at   org   apache   jasper  

回复

    检查一下你的index.jsp和index_top.jsp,产生这个的原因是contentType 被多次声明,contentType 只能声明一次。即如下语句不可以在同一个页面多次出现:<%@ page contentType="text/html; charset=GBK" %>,你好好看看吧,是不是这个问题。

    陆邦

相关信息

JSP 高分求教,在线等.

TOMCAT 4.1 + JDK1.4.2 设置了ACEESS 数据源 SHOP.MDB 老是报错: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling...

43 浏览 3 回复   java   at   apache   org   catalina  

org.apache.jasper.compiler是什么意思

运行jsp时错误的回答:at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper...

85 浏览 2 回复   java   apache   compiler   org   jasper  

jsp 错误:java.lang.NumberFormatException: null

我用的JBUILDER编的 大家快来帮我啊! 错误:java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:436) at java.lang.Integer.parseInt(Integer.java:518) at org.apache.jsp.view$jsp.\_jspService...

33 浏览 3 回复   java   at   org   apache   catalina  

java.sql.SQLException: Connection reset by peer: socket write error

tomcat+windows2003+sql2000做的OA系统,运行一段时间后总是提示数据库错误,其报错如下:21051806 ERROR 2006-08-25 17:52:38 | Exception: java.sql.SQLException: Connection reset by peer: socket write error at com.inet.tds.TdsDriver...

43 浏览 1 回复   java   at   apache   org   core  

HTTP Status 500 -

环境:windows xp sp2 jdk 1.5.0\_07 Apache Tomcat 5.5.17 java程序可以运行成功.<http://127.0.0.1:8080/>页面也能成功的运行出来 但有一个注册网页,提交注册后调用一个jsp页面出现如下错误: HTTP Status 500 - -------------------------------...

26 浏览 1 回复   apache   java   org   jasper   compiler