tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dunkle, Ed" <>
Subject RE: Applet, xml
Date Tue, 09 May 2000 15:16:17 GMT
Another approach would be to write a servlet (that's what Tomcat is for)
that accesses the database wherever it is and sends the data to the applet
over an HTTP connection.  That's really not very complicated.  Any book on
servlets should cover this.


-----Original Message-----
From: Christian Mack []
Sent: Tuesday, May 09, 2000 5:32 AM
To: ''
Subject: RE: Applet, xml

Hi Eric

You can use DB Connections, but the DB has to be on the same Server as the
Webserver serving this Applet. 
This is due to the Sandbox restrictions of Applets.

If you need to use another server for the DB, you have to move the Applet
into a signed *.jar and a *.cab File. 
The certificate used mus be a SignerAuthority known to IE.
Also you have to add some Code to open the Sandbox for Netscape browsers.
IMHO this all isn't that easy.


> -----Original Message-----
> From: Eric Ngai []
> Sent: Tuesday, May 09, 2000 9:18 AM
> To:
> Subject: Applet, xml
> I developed a applet+application to use swing and db 
> connection. I can get
> the application work, but the applet failed. Is it true that 
> applet can't
> use db connection?
> If that is the case, I will have to generate the data out of 
> the db into a
> xml. And my applet use this xml. I have the following question:
> - To use jsp to generate the contents of the xml, but the 
> output from a
> abc.jsp is still abc.jsp, not abc.xml.
> Thank You!
> Regards,
> Eric Ngai
> Star Solutions
> Malaysia
> --------------------------------------------------------------
> ------------
> To unsubscribe, email:
> For additional commmands, email:

To unsubscribe, email:
For additional commmands, email:

View raw message