File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Http call from applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Http call from applet" Watch "Http call from applet" New topic

Http call from applet

sai pabb

Joined: Sep 01, 2010
Posts: 9

I'm calling srvlet from an applet using the following code. I've kept a debugger on the srvlet which is expecting the call. When the call is fired, no call came to the server. When I ran the same through the normal browser it is working. Should I run the applet from the browser to make a server call? or can I run the applet by clickin on the run button in the eclipse and make a server call from here?

Lester Burnham

Joined: Oct 14, 2008
Posts: 1337
You need to read from the InputStream, otherwise the call won't be made. Yes, it's counter-intuitive.
sai pabb

Joined: Sep 01, 2010
Posts: 9
Awesome.!! thanks a lot!! worked like a charm!
I agree. Here's the link:
subject: Http call from applet
It's not a secret anymore!