This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet and ASP Communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet and ASP Communication" Watch "Applet and ASP Communication" New topic

Applet and ASP Communication

Prachi Gupta

Joined: Oct 05, 2006
Posts: 2
I have been trying to write and read data from an ASP page for some time now without any success.

I need to send binary data to the ASP page and read binary data from it.

Here's my applet code:

I load this applet in an HTML page: main.html
The code for the HTML page is as follows:

The asp page is simple and just displays the data sent by the applet to it and sends some data back to the applet.

Can some one please point me in the right direction or post some example code?

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3640
Post the error message your are getting.

My blood is tested +ve for Java.
Prachi Gupta

Joined: Oct 05, 2006
Posts: 2
I do not get any error message.
The java console shows RETURNED FROM WRITE
and nothing else.
The ASP does not get executed at all.
Joe Ess

Joined: Oct 29, 2001
Posts: 9191

HTTP has two parts: a request and a response. If you do not read the response, you are not fulfilling your part of the protocol and the server is free to ignore the request.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Applet and ASP Communication
jQuery in Action, 3rd edition