Topic: 天才们看看,超级奇怪的问题~~~!!!!! |
Print this page |
1.天才们看看,超级奇怪的问题~~~!!!!! | Copy to clipboard |
Posted by: songbenlijia Posted on: 2005-04-28 10:12 tomcat 5.5.7+jdk1.5.0+postgresql 8 我写了一个javabean mark.DateBase 我在测试程序test.java里面这样测试 DateBase db=new DateBase(); int num=db.executeQuery("select * from news"); System.out.println(num); 输出结果为3 但是在jsp里面 <%@ page language="java" import="java.sql.*"%> <jsp:useBean id="db" scope="page" class="mark.DateBase"/> <% int num=db.executeQuery("select * from news"); out.println(num); %> 结果确是0, 知道这是怎么回事情??????????? |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |