wood burning stoves 2.0*
The moose likes Servlets and the fly likes applet call to servlet (my http tunnel saga) 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 » Servlets
Bookmark "applet call to servlet (my http tunnel saga)" Watch "applet call to servlet (my http tunnel saga)" New topic

applet call to servlet (my http tunnel saga)

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi again.
I am thumbing thru a few books at the moment (Moss, Zukowski, O'Reilly...)
I think I understand the tunnel (lite) bit, but do not see the practical value if the applet itself is on the same server and in the same directory as the servlets , in my example :

As well, in the HTML script, we have the same directory :

This defeats my purpose altogther !
I want to invoke the servlet from the applet, and the latter is currently a static html page.
So the questions are :
(1) Does it make sense to have the invoker applet in the same Apache directory as the html-scripts for the web-page ???
(2) How to I get the <Applet...> tag to look at the Tomcat server's applet directory (ie. accross the network ) ???

humanum errare est.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
If I understand your situation correctly, you can't do this with a normal applet. Applets are restricted as to what URLs they can access - restricted to the originating web server. This is for security reasons. With a signed applet you can get around this restriction.
[ October 07, 2002: Message edited by: William Brogden ]
achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Are there some authoritative books you can recommend ?
I have quite a collection here, but most of them either touched upon the subject superficially or do not provide the level of detail needed.
I am increasingly frustrated with this last major hurdle, which seems increasingly like an well-kept and arcane art secret.
achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi again!
I am also looking at serialization and I have some very basic concerns.
In Zukowski's , he emphasized the security implication (or lack thereof) by writing the state of an object to a file.
Can someone shed some light on this ?
In the meantime, let's see what meagre doco's are available in books and online...
I agree. Here's the link: http://aspose.com/file-tools
subject: applet call to servlet (my http tunnel saga)
Similar Threads
Controlling applet from html code
Servlet to Applet
Servlet can Call an Applet
simple applet won't run