pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedproblem with JDBC
4+ messages / 4 participants
[nested] [flat]
* problem with JDBC
@ 1999-06-02 08:22 ßN·¬ <yhf@ms.chttl.com.tw>
0 siblings, 0 replies; 4+ messages in thread
From: ßN·¬ @ 1999-06-02 08:22 UTC (permalink / raw)
To: pgsql-interfaces
I have a problem with JDBC:
I write an applet including the JDBC code to connect to the pgsql server
to get data.
My applet runs fine everytime from the init() state.
But sometimes goes wrong if I press "Reload" on the browser which makes
my program runs again from the start() state.
The Statement gets the previous ResultSet to me when I
"executeQuery(SQLQuery)".
Is that possible that I get the previous ResultSet because I press the
"Reload" while the ResultSet is transferring to me ?
But the document says that the previous ResultSet will be close by the
Statement when that statement is re-executed .
Therefore, why do I get the previous ResultSet in the Statement ?
Attachments:
yhf.vcf (text/x-vcard, 365B) download
begin:vcard
n:Yeh;Hsiao-Feng
tel;fax:+886-3-4244888
tel;work:+886-3-4245064
x-mozilla-html:FALSE
fn;quoted-printable:=B8=AD=DFN=B7=AC
org:Chung-Hwa Telecommunication Labs.
version:2.1
email;internet:yhf@ms.chttl.com.tw
title:Associate Researcher
adr;quoted-printable:;;12, Lane 551, Min-Tsu Road sec.5 =0D=0AYang-Mei, Taoyuan;Chung-Li;Tao-Yuan;326;Taiwan
end:vcard
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [INTERFACES] problem with JDBC
@ 1999-06-02 11:00 Jim Ridenour <jridenou@ee.net>
0 siblings, 0 replies; 4+ messages in thread
From: Jim Ridenour @ 1999-06-02 11:00 UTC (permalink / raw)
To: yhf@ms.chttl.com.tw; pgsql-interfaces
I don't know the answer, but I'll tell you that if you don't get an
answer here, there is a newsgroup at comp.lang.java.databases that should
be able to help you.
At 04:22 PM 6/2/99 +0800, ßN·¬ wrote:
>I have a problem with JDBC:
>I write an applet including the JDBC code to connect to the pgsql server
>to get data.
>My applet runs fine everytime from the init() state.
>But sometimes goes wrong if I press "Reload" on the browser which makes
>my program runs again from the start() state.
>The Statement gets the previous ResultSet to me when I
>"executeQuery(SQLQuery)".
>Is that possible that I get the previous ResultSet because I press the
>"Reload" while the ResultSet is transferring to me ?
>But the document says that the previous ResultSet will be close by the
>Statement when that statement is re-executed .
>Therefore, why do I get the previous ResultSet in the Statement ?
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* RE: [INTERFACES] problem with JDBC
@ 1999-06-03 10:18 Peter Mount <petermount@it.maidstone.gov.uk>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Mount @ 1999-06-03 10:18 UTC (permalink / raw)
To: ßN·¬ <yhf@ms.chttl.com.tw>; pgsql-interfaces
Applets are strange beasts at best.
When you press Reload, not everything is really reloaded. When I used to
write applets (a couple of years ago noe), I found that pressing reload
simply reloaded from cache, and not from the network. It might be the
case here that the browser is simply continuing the existing applet,
rather than stopping it and then reloading a fresh one.
As I said, it's been a couple of years since I wrote an applet, so I may
be wrong now.
Peter
--
Peter T Mount, Enterprise Support
petermount@it.maidstone.gov.uk
Anything I write here are my own views, and cannot be taken as the
official words of Maidstone Borough Council
-----Original Message-----
From: ßN·¬ [mailto:yhf@ms.chttl.com.tw]
Sent: Wednesday, June 02, 1999 9:22 AM
To: pgsql-interfaces@postgreSQL.org
Subject: [INTERFACES] problem with JDBC
I have a problem with JDBC:
I write an applet including the JDBC code to connect to the pgsql server
to get data.
My applet runs fine everytime from the init() state.
But sometimes goes wrong if I press "Reload" on the browser which makes
my program runs again from the start() state.
The Statement gets the previous ResultSet to me when I
"executeQuery(SQLQuery)".
Is that possible that I get the previous ResultSet because I press the
"Reload" while the ResultSet is transferring to me ?
But the document says that the previous ResultSet will be close by the
Statement when that statement is re-executed .
Therefore, why do I get the previous ResultSet in the Statement ?
^ permalink raw reply [nested|flat] 4+ messages in thread
* RE: [INTERFACES] problem with JDBC
@ 1999-06-03 12:52 Dave Broudy <shaggy@broudy.net>
parent: Peter Mount <petermount@it.maidstone.gov.uk>
0 siblings, 0 replies; 4+ messages in thread
From: Dave Broudy @ 1999-06-03 12:52 UTC (permalink / raw)
To: Peter Mount <petermount@it.maidstone.gov.uk>; +Cc: ßN·¬ <yhf@ms.chttl.com.tw>; pgsql-interfaces
You can do a "super reload" in Netscape/Linux by clicking and holding on
reload, pressing the shift key, releasing the reload button, releasing the
shift key. Note that this is slightly different from a "shift click",
which I think is how you do in on Windows.
You may also find that you need to update the timestamp on the page
itself, in addition to the class files for the reload to work.
On Thu, 3 Jun 1999, Peter Mount wrote:
> Applets are strange beasts at best.
>
> When you press Reload, not everything is really reloaded. When I used to
> write applets (a couple of years ago noe), I found that pressing reload
> simply reloaded from cache, and not from the network. It might be the
> case here that the browser is simply continuing the existing applet,
> rather than stopping it and then reloading a fresh one.
>
> As I said, it's been a couple of years since I wrote an applet, so I may
> be wrong now.
>
> Peter
>
> --
> Peter T Mount, Enterprise Support
> petermount@it.maidstone.gov.uk
> Anything I write here are my own views, and cannot be taken as the
> official words of Maidstone Borough Council
>
> -----Original Message-----
> From: ßN·¬ [mailto:yhf@ms.chttl.com.tw]
> Sent: Wednesday, June 02, 1999 9:22 AM
> To: pgsql-interfaces@postgreSQL.org
> Subject: [INTERFACES] problem with JDBC
>
>
> I have a problem with JDBC:
> I write an applet including the JDBC code to connect to the pgsql server
> to get data.
> My applet runs fine everytime from the init() state.
> But sometimes goes wrong if I press "Reload" on the browser which makes
> my program runs again from the start() state.
> The Statement gets the previous ResultSet to me when I
> "executeQuery(SQLQuery)".
> Is that possible that I get the previous ResultSet because I press the
> "Reload" while the ResultSet is transferring to me ?
> But the document says that the previous ResultSet will be close by the
> Statement when that statement is re-executed .
> Therefore, why do I get the previous ResultSet in the Statement ?
>
>
>
Dave Broudy dave@broudy.net
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~1999-06-03 12:52 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-06-02 08:22 problem with JDBC ßN·¬ <yhf@ms.chttl.com.tw>
1999-06-02 11:00 Re: [INTERFACES] problem with JDBC Jim Ridenour <jridenou@ee.net>
1999-06-03 10:18 RE: [INTERFACES] problem with JDBC Peter Mount <petermount@it.maidstone.gov.uk>
1999-06-03 12:52 ` Dave Broudy <shaggy@broudy.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox