aspose file tools*
The moose likes JDBC and the fly likes PROBLEM  IN CONNECTIVITY Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "PROBLEM  IN CONNECTIVITY" Watch "PROBLEM  IN CONNECTIVITY" New topic
Author

PROBLEM IN CONNECTIVITY

vikram veera
Ranch Hand

Joined: Dec 26, 2000
Posts: 43
Hai,

I have problem in connectivity.Ie I have used applet as a front end and ms-access as a back end.If i run this in applet viewer there is no problem,Ie connectivity performs good.The same code if run in a browser the connectivity dose'nt make.Please help me regarding this problem.
with regards
vikram
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
IE will not allow an applet to connect to any domain other than the one it came from. And sometimes not even that one. The solution we use is to set up a servlet to serve as the proxy for the applet.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Monty Ireland
Ranch Hand

Joined: Oct 03, 2000
Posts: 161
vikram veera
Try using the POLICYTOOL utility....
If you do not know how to use it just ask>
Monty

Multi Platform Database Developer & DBA on E.S.T.
Monty Ireland
Ranch Hand

Joined: Oct 03, 2000
Posts: 161
Thomas Paul
How can I set up a servlet to serve as the proxy for the applet?
Please explain...
Do you have any examples....?
Do you know where I can find an example...?
Monty
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
I have an example in my office. I'll post it tomorrow.
vikram veera
Ranch Hand

Joined: Dec 26, 2000
Posts: 43
Hello Monty,
please help me how to use POLICYTOOL utility....
I do not know how to use
vikram
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Here is an example of an applet calling a servlet by passing it an object and then getting an object back from the servlet. The rule is the objects passed back and forth must be serializable. So you could pass a String from the applet containing a SQL statement and get back a Vector (not a ResultSet which isn't serializabler) from the servlet.
This example is very simple. All the applet does is pass an object to the servlet which adds 10 to an int inside the object and then passes the object back again.
Here is the class passed back and forth:

Here is the applet.

Here is the servlet:

Monty Ireland
Ranch Hand

Joined: Oct 03, 2000
Posts: 161
thank-you ...
------------------
Multi-Platform Database Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PROBLEM IN CONNECTIVITY