Is firstnme the name of your column? Or should it be firstname? If
that's an error, there should be a SQLException thrown, but I don't know the
behavior fo DB2...it may just be that you get null back. In any case,
besides printing a stack trace, I would output something to the browser on a
)
Subject: RE: DB2 and servlet ??? Help !!!
08/01/2002
01:50 PM
]]
Sent: Thursday, August 01, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: DB2 and servlet ??? Help !!!
Hello John
firstnme is the correct column name...
What bugs me is if you see my servlet code which I am again attaching...
I try to put try and ctach every where possible so that
I can at least
PROTECTED]]
Sent: Thursday, August 01, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: DB2 and servlet ??? Help !!!
Hello John
firstnme is the correct column name...
What bugs me is if you see my servlet code which I am again attaching...
I try to put try and ctach every where possible so that
I can
[EMAIL PROTECTED]
cc: (bcc: Nishant Awasthi)
08/01/2002 02:02Subject: RE: DB2 and servlet ??? Help
!!!
PM
]
com cc: (bcc: Nishant Awasthi)
Subject: RE: DB2 and servlet ??? Help !!!
08/01/2002
Hi,
Assuming this is the SQL you want to submit:
try{
stmt = con.createStatement();
rs = stmt.executeQuery(SELECT empno
from
db2admin.employee);
shouldn't it be
if( rs.next() ){
do{
count++;
Retrieve some data from the database...
Received results:
Count is0
God Please help
/quote
Regards,
Michael
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, August 01, 2002 2:10 PM
Subject: RE: DB2 and servlet ??? Help !!!
I
brings nothing?? There is no SQLException, or nullpointer or something like that??
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:08 PM
To: Tomcat Users List
Subject: RE: DB2 and servlet ??? Help !!!
Hello Mark
]
Sent: Thursday, August 01, 2002 2:16 PM
Subject: Re: DB2 and servlet ??? Help !!!
Hi,
Your parameter is '012', while it appears that the employeenumbers in
your
database are more like:
empno= 000150
quote
BROWSER OUTPUT
---
paramater passed is 012
Count is0
: Nishant Awasthi)
Subject: Re: DB2 and servlet ??? Help
!!!
08/01/2002
02:16 PM
: Re: DB2 and servlet ???
Help !!!
Tomcat Users List
12 matches
Mail list logo