In my applet I have a HashMap object, I want to send that data to ASP file on Server. How I can send Applet data to ASP file? How I can call ASP file from Applet?
Printable View
In my applet I have a HashMap object, I want to send that data to ASP file on Server. How I can send Applet data to ASP file? How I can call ASP file from Applet?
Do you have a URL that will access your ASP code on the server? You can use that with the URLConnection class or with the AppletContext.showDocument() method to send it to the server that the applet was loaded from.
For example using HTTP GET: http://server/aspfile?theData
With HTTP POST, the you need to use the URLConnection class and use setDoOutput(true); and then getOutputStream() and write your data. You'll probably have to extract the data to be sent, I don't expect ASP to be able to read java Objects.
Norm