📄 109.html
字号:
<STYLE type=text/css>
<!--
body,td { font-size:9pt;}
hr { color: #000000; height: 1px}
-->
</STYLE>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD><TITLE>精选文章 >> JavaBean/Ejb >> jsp中同时应用“存储过程”和“javabean”的例子</title>
</head>
<body >
<p><IMG SRC="../image/jsp001_middle_logo.gif" WIDTH="180" HEIGHT="60" BORDER=0 ALT=""></p>
<table width=100% bgcolor="#cccccc" align=center cellpadding="2" cellspacing="0" border=1 bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#EFF8FF"><td>
<a href=http://www.jsp001.com/list_thread.php?int_attribute=2>精选文章</a>
>> <a href=http://www.jsp001.com/list_thread.php?forumid=6&int_attribute=2>JavaBean/Ejb</a>
>> jsp中同时应用“存储过程”和“javabean”的例子 [<a href=http://www.jsp001.com/forum/showthread.php?goto=newpost&threadid=109>查看别人的评论</a>]<br>
<hr><p>由 webmaster 发布于: 2001-01-21 11:11</p><p> </p><p>存储过程sp_shop_base:<br>Create Procedure sp_shop_base (@shop_id int,@msg char(50) output)<br>As<br> SELECT shop_name, shop_phone, shop_email, shop_cash, shop_address<br> FROM shop_shop<br> WHERE shop_id = @shop_id<br> SELECT @msg = 'Retrieval Finished'<br> return 1<br><br>程序:<br><%@ page contentType="text/html;charset=gb2312"%><br><br><html><br><head><br><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><br><title>JSP 存储过程 - javabean - JDBC-ODBC - SQL Server </title><br></head><br><body><br><%@ page language="java" import="java.sql.*" %><br><jsp:useBean id="bka" scope="page" class="shop.bka" /><br><%<br>ResultSet RS = bka.executeQuery("{call sp_shop_base('2','')}");<br>while (RS.next()) {<br>out.println(RS.getString(1));<br>out.println(RS.getString(2));<br>out.println(RS.getString(3));<br>out.println(RS.getString(4));<br>out.println(RS.getString(5));<br>}<br>RS.close();<br>%><br><br></p></td>
</tr>
</table>
<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=109">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=109&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=109&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=109&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=109&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>
<script language="javascript" src="http://www.jsp001.com/include/read_thread_script.php?threadid=109"></script>
<p><CENTER>
Copyright © 2001 - 2009 JSP001.com . All Rights Reserved <P>
<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -