Обсуждение: RE: [INTERFACES] JDBC & Netscape

Поиск
Список
Период
Сортировка

RE: [INTERFACES] JDBC & Netscape

От
Peter Mount
Дата:
Note, I don't play with applets, but I know a lot of people do, but
Netscape should be fine. Only IE seems to have a problem.

the .:postgresql.jar codebase is new to me - perhaps other applet
authors can confirm if its the correct syntax. Before, people have had
to merge their classes and postgresql.jar.

If the syntax is correct, let me know, and I'll add a note about it in
the documentation.

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.



-----Original Message-----
From: Erkki Seppala [mailto:flux@inside.org]
Sent: Thursday, January 06, 2000 11:03 AM
To: pgsql-interfaces@postgreSQL.org
Subject: [INTERFACES] JDBC & Netscape


Is it possible to run postgresql's jdbc-module under netscape? I managed
to create a simple local application (non-applet) that dumps a part of 
table, but doing the same in the applet doesn't seem to work. It can't
find the class "postgresql.Driver". 

I used 'codebase=".:postgresql.jar"' in the html, and as
"postgresql.jar:."
works just as fine (it still can find the original .class) compared to
just
plain "postgresql.jar", I assume this is the correct syntax.

(btw, the search engine for mailing lists at www.postgresql.org is
broken)
--  _____________________________________________________________________    / __// /__ ____  __
     Erkki Seppälä\   \   / /_ / // // /\ \/ /                       Inside Informatics ry\  /  /_/  /_/ \___/
/_/\_\@inside.org       http://www.inside.org/~flux/
 

************


Re: [INTERFACES] JDBC & Netscape

От
Erkki Seppala
Дата:
On Thu, Jan 06, 2000 at 11:27:44AM -0000, Peter Mount wrote:

> Note, I don't play with applets, but I know a lot of people do, but
> Netscape should be fine. Only IE seems to have a problem.

> the .:postgresql.jar codebase is new to me - perhaps other applet
> authors can confirm if its the correct syntax. Before, people have had
> to merge their classes and postgresql.jar.

> If the syntax is correct, let me know, and I'll add a note about it in
> the documentation.

It seems to me I made a thinko at some point: I should've had been thinking 
about 'archive' all the time, instead of 'codebase'. However, I noted an 
interesting thing: archive="foo.jar,postgresql.jar" works. I mean, this 
works:

<applet code=SqlApplet archive="sqlapplet.jar,postgresql.jar" width=100
height=100></applet>

Of course, I didn't have the class-file around why I tested it.

Don't know if that is thought to be general knowledge (according to you 
it's not?), but atleast the documentation I have doesn't reveal it.

Also, another interesting thing I noted, which is really distribution 
relevant instead of postgresql: with debian distribution of postgres, 
uncompressing and recompressing postgresql.jar shrinks it by 50% 
(from 143 kbytes to 71 kbytes).
--  _____________________________________________________________________    / __// /__ ____  __
     Erkki Seppälä\   \   / /_ / // // /\ \/ /                       Inside Informatics ry\  /  /_/  /_/ \___/
/_/\_\@inside.org       http://www.inside.org/~flux/