Web技术应用基础_d09题库.ppt

计算机信息系统集成第5章 JSP rs.close(); //关闭ResultSet对象 } catch(Exception e){ out.println(e.getMessage()); } stmt.close(); //关闭Statement对象 conn.close(); //关闭Connection对象 % /table/center /body/html JSP 9.3.2 参数查询 例9.4 :用户在界面输入查询条件,如出版社的名称,输入的名称提交给ex9-04.jsp处理,输出数据表“ booktable”中需要查询的出版社出版的图书。其关键查询语句为: Select * From booktable where publisher=+publishername+ 参数查询 JSP ex9-04.html: htmlhead title参数查询应用案例/title/head bodycenter font size = 4 color = blue 图 书 查 询/font/centerhr form method=post action=ex9-04.jspfont color=green 请输入出版社名称: input type=text name=pubname size=20 maxlength=20p

文档评论(0)

1亿VIP精品文档

相关文档