This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Connecting to a remote servlet from an unsigned applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Connecting to a remote servlet from an unsigned applet" Watch "Connecting to a remote servlet from an unsigned applet" New topic
Author

Connecting to a remote servlet from an unsigned applet

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
My applet connects to a remote servlet (on a different server). I could obviously connect to it fine with a signed applet, but now my applet is no longer signed.

I understand an unsigned applet can access a servlet on the same web server host, but the problem is that the servlets are on a different server...

Is there some simple way I can create a file (html or whatever) on the web server host that can accept requests from the applet and redirect them to the remote servlets?

Cheers,
James
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
You'd need some kind of active server component (Servlet, ASP, PHP, ...) to achieve this. It would be more like proxying, though, not redirection, since the flow would be applet-->server1-->server2-->server1-->applet.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Connecting to a remote servlet from an unsigned applet
 
Similar Threads
Applet serversocket problem
Writing a file from an Applet
Sending data to an applet.
Signed Applet Security
Connecting Applet to an Access Database