myeclipse连接mysql出现异常 1C

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">




Sex: male
female

   体重范围:<p>&nbsp;&nbsp;&nbsp;&nbsp;
最小:<input type="text" value="0" name="w1"  ><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;
最大:<input type="text" value="100" name="w2"  ><p>
    身高范围:<p>&nbsp;&nbsp;&nbsp;&nbsp;
最小:<input type="text" value="140" name="h1"  ><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;
最大:<input type="text" value="200" name="h2"  ><br><br>
<input type="submit" value="提交">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" value="取消">
</p>

</form>


<%@ page language="text/html" import="java.sql.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">




记录条数idname
sexageweightheight

<%rs.beforeFirst();
while(rs.next()){
%>
<%=rs.getRow() %>
<%=rs.getInt("id") %>
<%=rs.getString("name") %>
<%=rs.getString("sex") %>
<%=rs.getInt("age") %>
<%=rs.getFloat("weight") %>
<%=rs.getFloat("hight") %>

<%} %>


<%if(rs!=null){rs.close();}
if(pstmt!=null){pstmt.close();}
if(conn!=null){conn.close();}
%>



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

exception

org.apache.jasper.JasperException: /find_stu_3.jsp(1,1) Page directive: invalid language attribute
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:102)
org.apache.jasper.compiler.PageInfo.setLanguage(PageInfo.java:374)
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:117)
org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:590)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
org.apache.jasper.compiler.Validator.validate(Validator.java:1700)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

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

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问