• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PROBLEM IN CONNECTIVITY

 
vikram veera
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Monty Ireland
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vikram veera
Try using the POLICYTOOL utility....
If you do not know how to use it just ask>
Monty
 
Monty Ireland
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an example in my office. I'll post it tomorrow.
 
vikram veera
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Monty,
please help me how to use POLICYTOOL utility....
I do not know how to use
vikram
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank-you ...
------------------
Multi-Platform Database Developer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic