File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

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 ) ???
:roll:


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

Joined: Mar 22, 2000
Posts: 12676
    
    5
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.
Bill
[ October 07, 2002: Message edited by: William Brogden ]

Java Resources at www.wbrogden.com
achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi!
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
Servlet to Applet
simple applet won't run
Servlet can Call an Applet
Controlling applet from html code
ServletRunner