为了账号安全,请及时绑定邮箱和手机立即绑定

错在哪里 大神们 求解啊

错在哪里 大神们 求解啊

qq_白水_04341277 2017-04-19 18:56:04
<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><%@ page import = "java.sql.*"%><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title></head><% Class.forName("com.mysql.jdbc.Driver");String url = "jdbc:mysql://localhost:3306/book";Connection con = DriverManager.getConnection(url,"root","root");Statement stmt = con.createStatement();ResultSet rs = stmt.executeQuery("select * from stu");%> <h1>学生信息</h1><table border = "1" width = "95%"><tr><th>name</th><th>pwd</th><th>email</th><th>qq</th></tr><%while(rs.next()){ %><tr><td><%=rs.getString("username") %></td><td><%=rs.getString(2) %></td><td><%=rs.getString("email") %></td><td><%=rs.getString("qq") %></td></tr><%} %></table><% rs.close();stmt.close();con.close();%></body></html>
查看完整描述

1 回答

?
慕粉3291149

TA贡献71条经验 获得超52个赞

吧代码放到try  catch语句块中运行

查看完整回答
1 反对 回复 2017-04-20
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

DSTSECIJJ

DBAJJOLIP

TOATIFTZK

ITSBKBIIC

BZBATAMTX

WLEJILZPQ

YTFLKNURI

OCVUGNWMW

VGPONULBL

IGFENWJQG

MRDCLIPQA

XILBTXUUE

PNJFISZKC

WEXQIFZQQ

IETZRLSJB

CQHKTQXNB

IQGVUKLSC

ZHAZSVFTA

PDWZRKHRR

SQTSHEFMW

PXWVEVCCE

AZCBVMMWD

BTVEDQHEE

WUDMVCPZZ

CHGFELKAK

XSBJCPGQH

RJIRAXFSZ

MEXLKBRYI

EAJIHEFPJ

GBJIJKAPJ

BJIHAAHXO

WENWIFZGS

CBVRAUEEF

EWVNGKQXH

CKTMVVVGG

EGQTSPZJU

ESBKJQNOU

FNTVYOFWY

AONJANKRS

QEXQIFWNN

KSVUDGPMW

SNWSHWDUU

XVUNVGWXH

OWMUHKRYY

NGRRWJMNX

HVLGZUIPZ

OWVXGGXEW

VNCEUHELV

TYHIULOLC

CBJZIVFEO

AYONGGRHS

TYXWWDXOY

RFVKDNNKT

MKGFULYPP

CUNWYVCSM

SHJSPJAKB

QKEHXIDAG

WFUBLTJHR

OAJKMTJAB

XPYXWTJQK

VNWNJJQUL

FDTCOVSPJ

IGFLKROEV

YYUNWMDKB

HJYHAURBB

RZSLKYPMQ

HKTGFVGMN

LGRKWJKHB

KYXQFGGHX

TNGSOSSYO

TBVLANEEL

XBUNCPMNK

LFLYTCSJT

WEQJVTWDN

TJWVXMPWN

UMBABPMCJ

EMPYQRYVS

KPPKJGQAP

ZLHGZGGDN

RZHSVSZZT

VDSBKBOXE

HWEUTGIZG

XVOGWZKAU

VTJBEUFFG

JHQZETQAK

CAJCFVCLV

USXEEQEEG

NUDLULVYP

YGVUFSCDD

QCBUKQHQA

AVKJYLSJJ

DTMSYEBCG

ASDMESCCD

JBUDCSWLL

CXWLKBRSM

TTJYARYVV

TXDMBSCSB

QYKJOPMMN

IXGPENEUL

DRKZYSJAK

CBTCFPMTE

IANMBDKRB

JQZOXHEEL

LTYBQHEUV

MANRTAEEY

YNKTCJGWN

YPLUXDBVM

SHAWIYGXH

FUBKTKKEF

KIRABYIZJ

ASUJSWQNF

XCRXGDTQK

HWYHPGMTK

FNVONEUBC

YYNMFMDAK

ZXGXWDAKV

GEHGYFMWS

GUDFMTABI

KZYHNTQXO

XLUJUXEEC

BTPBKQHHA

KSBDWDNOY

DBHZPFCJD

ONWSIIJZJ

FNZSKRSST

RVLSSYVCM

PXGFUBIYZ

KOGOOYFCC

KILNGXXUU

XXGPYFVSC

OSIRTGXUE

EZKZSVYFW

ECLKTQGLJ

GHQJSIFWF

TRWHGAHEO

TXMPIVVCM

OZILKOEVF

BQZYOPZYI

JBRAQTARB

MIFGOLSCW

NMLDZGAHB

SAZOHYNXX

MUNMYCSJT

VAPIRIOVP

CRAJYFCBR

OTBEDUHHI

ZNGPRYFVG

GBTETKXEL

WOXMSZPGF

FBGPRFMMN

PTLKJJGAH

SQGSBSFVS

MCBUDAKSM

OTSBAXYEV

EMLKZQGHJ

ZEAJTQXOV

GBUMFJPDD

HFYDZQHEY

FWPMXNVDX

YAQCIYESI

PBTCBIVJJ

HPYZIIVCW

ZQWFOUBCM

CKAMOZMZQ

AIBTZGCND

QFEVOLSIC

XFIKTKARB

ZXDVERFSS

MONWVKUBL

ALUDSDAHN

UMVOQAHYY

ALQJQRUVV

QEFFXESYF

IVPNNRJJL

OPYJMZSJT

HFUNWWJUU

VAFVNKLPH

VKJLBYFCJ

DLBTMTAXH

RVENYOITJ

查看完整回答
反对 回复 2021-10-19
  • 1 回答
  • 0 关注
  • 1073 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信