租房买房买生意上iU91
查看: 1887|回复: 31
打印 上一主题 下一主题

[电脑] JavaBean Expert Help!!!

[复制链接]   [推荐给好友]
跳转到指定楼层
楼主
发表于 2002-7-11 15:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Is anybody here an expert of JavaBean? Help please, I'm working on a web page using JavaBean and JSP.

I will pay for the help.   :p
2#
 楼主| 发表于 2002-7-11 22:12 | 只看该作者
急死我了, 快帮帮我!
回复 支持 反对

使用道具 举报

3#
发表于 2002-7-11 23:24 | 只看该作者
What tools do you use to write the Java Bean??
Give me some details about your problem, maybe I can help you!!

     
回复 支持 反对

使用道具 举报

4#
发表于 2002-7-12 08:33 | 只看该作者
post some details here and u may get help......
回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2002-7-12 08:53 | 只看该作者
I want to create a counter for our web site and select some user information like how many pages the user visit, session time, etc..., then store the information to database.

I have a JSP page that deployes a JavaBean, the simple counter page is working, but when I want to connect to database, system gave me "500 error message".

I've never touched JavaBean, that's why I can't find the problem. Thanks for all the replying.
回复 支持 反对

使用道具 举报

6#
 楼主| 发表于 2002-7-12 09:14 | 只看该作者
That's the error message I got:

Error:500
Internal Servlet Error:

javax.servlet.ServletException:  Cannot create bean of class count.accessdata
...
回复 支持 反对

使用道具 举报

7#
发表于 2002-7-12 09:36 | 只看该作者
I suggest you check your database connection part.
possible places: 1.configuration of the jsp engine. 2. jdbc driver working or not.

Good luck
回复 支持 反对

使用道具 举报

8#
 楼主| 发表于 2002-7-12 09:43 | 只看该作者
I'm trying to see the JDBC is working or not
回复 支持 反对

使用道具 举报

9#
发表于 2002-7-12 09:49 | 只看该作者
Do you throw exception from the constructor of the problem bean?
回复 支持 反对

使用道具 举报

10#
 楼主| 发表于 2002-7-12 09:53 | 只看该作者
Yes, I did, here are the codes:

try {
                // Load mySQL JDBC driver
                  Class.forName("org.gjt.mm.mysql.Driver");
        }
        catch(java.lang.ClassNotFoundException e) {
                System.err.println("mydb(): " + e.getMessage());
        }

Is that a way to throw exception?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

Copyright © 1999 - 2024 by Sinoquebec Media Inc. All Rights Reserved 未经许可不得摘抄  |  GMT-4, 2024-5-15 05:12 , Processed in 0.046010 second(s), 43 queries .