File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Applet/Servlet Http tunneling 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/Servlet Http tunneling" Watch "Applet/Servlet Http tunneling" New topic

Applet/Servlet Http tunneling

Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
I have a servlet named that queries a database and retrieves a random quote. This works fine. Now I want to create an applet that displays a random quote each time it is loaded. From my understanding I can do this with http tunneling. This is where I am lost. The doGet method of instantquote does all the action while the doPost is empty. How do I have the applet query the instantquote servlet each time the applet is loaded? In the doGet method a ResultSet is returned, and then I just get the string from that. This sounds simple, but I'm not sure how to have the applet communicate with the servlet directly???
Any help would be great. I'm lost.
Alternatively, I could skip the applet and then just have the servlet return the whole page, but I'd rather use the applet. Thanks.
Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
It seems as I have figured it out.
Thanks anyways.
I agree. Here's the link:
subject: Applet/Servlet Http tunneling
Similar Threads
Servlet can Call an Applet
http tunneling
Servlet handling multiple requests from applet
Http Tunneling