JSP编程一直出现org.apache.jasper.JasperException 40
org.apache.jasper.JasperException:/include.inc(5,0)Pagedirective:illegaltohavemultipl...
org.apache.jasper.JasperException: /include.inc(5,0) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=gb2312, new: text/html;charset=gb2312)
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:236)
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:126)
org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:550)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:93)
org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Validator.validate(Validator.java:1447)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
后来改了出现了这个错误。。。。需要怎么改?
org.apache.jasper.JasperException: Exception in JSP: /watch.jsp:17
14: ResultSet rs1=stmt.executeQuery("select*from tb_book where id=1");
15: ResultSet rs2=stmt.executeQuery("select*from tb_language where id=1");
16: ResultSet rs3=stmt.executeQuery("select*from tb_borrowbook where id=1");
17: if(rs1.next())
18: {
19: %>
20: <tr> 展开
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:236)
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:126)
org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:550)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:93)
org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Validator.validate(Validator.java:1447)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
后来改了出现了这个错误。。。。需要怎么改?
org.apache.jasper.JasperException: Exception in JSP: /watch.jsp:17
14: ResultSet rs1=stmt.executeQuery("select*from tb_book where id=1");
15: ResultSet rs2=stmt.executeQuery("select*from tb_language where id=1");
16: ResultSet rs3=stmt.executeQuery("select*from tb_borrowbook where id=1");
17: if(rs1.next())
18: {
19: %>
20: <tr> 展开
2个回答
展开全部
old: text/html; charset=gb2312, new: text/html;charset=gb2312)
说明你包含的页面与现在的页面中有相同text/html;charset=gb2312设置语句
去掉一句就ok了.还有一般是不允许在被包含的页面中出现<html><body>这种标签的,要不然就重复了.多试试就知道了
说明你包含的页面与现在的页面中有相同text/html;charset=gb2312设置语句
去掉一句就ok了.还有一般是不允许在被包含的页面中出现<html><body>这种标签的,要不然就重复了.多试试就知道了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询