File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Http call from applet" Watch "Http call from applet" New topic
Author

Http call from applet

sai pabb
Greenhorn

Joined: Sep 01, 2010
Posts: 9
Hello,

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
Rancher

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
Greenhorn

Joined: Sep 01, 2010
Posts: 9
Awesome.!! thanks a lot!! worked like a charm!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Http call from applet
 
Similar Threads
EOF error
Servlet to Applet Communication problem
applet-servlet comm using obj serialization --- william,thomas, maha please help
Post to Servlet from Applet doesn't work
Passing objects between a servlet and an applet