Meaningless Drivel is fun!*
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
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet and ASP Communication" Watch "Applet and ASP Communication" New topic
Author

Applet and ASP Communication

Prachi Gupta
Greenhorn

Joined: Oct 05, 2006
Posts: 2
Hi,
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?

Thankyou
PG
Chetan Parekh
Ranch Hand

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


My blood is tested +ve for Java.
Prachi Gupta
Greenhorn

Joined: Oct 05, 2006
Posts: 2
Hi,
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
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: Applet and ASP Communication