[java] Accessing asp pages from an applet

Started by
1 comment, last by nick316 22 years, 1 month ago
Hello, Anybody have any links or ideas about accessing asp pages from an applet to get around the security issue. I know you need a url but i am not sure how to pass arguments to the asp pages? Any comments welcome. Thanks, Nick
Advertisement
Try these links:

http://216.70.7.100/connector.java

http://216.70.7.100/ChatApplet.java


Connector.java was the class I used to load an asp or coldfusion pages an pull dynamic data from that page. To pass a parameter in to the page you are connecting to use the url to put data i.e.

"http://www.mydomain.com?UserName=Joe&LastName=FruityPants"

The ChatApplet.java was the class that I used to use the connector class, among others. Inside that file you should find a basic example of how to use the connector class to pull data from a webpage. The url is initially loaded as a parameter from that class but you could programmatically generate a string that would truly make it a dynamic thing. I used it in a live chat applet and it worked rather well. The only caveat is that the url you are trying to access has to be in the same domain as the one the applet is running on(if you are going to use this in an applet). Otherwise a security exception will get thrown.

Good luck. Let me know if this doesn''t work for you.. I have a few solutions floating around here somewhere...

-The cowboys have a way of trussing up a steer or a pugnacious bronco
which fixes the brute so that it can neither move nor think. This is the
hog-tie, and it is what Euclid did to geometry.

-War doesn''t determine who is right, war determines who is left.
Oops, I just double checked the link and it doesn''t(worked 3 hours ago) I think my boss unplugged that line. I put the files on my personal site. you can find them here:

This is a direct link to the connector class
http://www.wrathnut.freeservers.com/connector.java

My webhost seems to puke when I try to put a direct link to the ChatApplet.java so I put links on my home page to both the connector and the ChatApplet java files. Here is a link to my homesite:

http://www.wrathnut.freeservers.com

Let me know when you have finished following these links to so I can take them off of my site.. I slapped it up really quick so they are very un-pretty.


-The cowboys have a way of trussing up a steer or a pugnacious bronco
which fixes the brute so that it can neither move nor think. This is the
hog-tie, and it is what Euclid did to geometry.

-War doesn''t determine who is right, war determines who is left.

This topic is closed to new replies.

Advertisement