Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nick316

[java] Accessing asp pages from an applet

This topic is 6013 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!