The Artima Developer Community
Sponsored Link

Java Answers Forum
Applet restrictions and aliased domains

2 replies on 1 page. Most recent reply: Oct 11, 2007 5:40 AM by Doug Gunnoe

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Doug Gunnoe

Posts: 22
Nickname: dgun
Registered: May, 2007

Applet restrictions and aliased domains Posted: Oct 10, 2007 5:47 PM
Reply to this message Reply
Advertisement
I recently changed web hosts. My former host did not have support for Java. As a work around, I created an applet that opened a connection to a cgi script. The script dynamically created an html file and returned the address of the file back to the applet, which opened the new file.

When I moved everything over to the new host, I made sure that the paths and addresses referenced in the script and applet remained the same so that I would not have to change anything.

However, I am getting an IO exception.

My new hosting account is set up with one primary domain, and several aliased domains, such that the aliased domains are each folders under the primary domain account. When someone types in www.my_aliased_domain.com, I assume it is the A records or cname records are what have you that point to the subfolder primary_domain/my_aliased_domain.

My questions are (assuming the file paths and addresses are all correct) :

1.Since Java applets can only communicate with the host from whence they came, would these security restrictions block a connection to an aliased domain?
2.And if so, would should I get an IO exception or some other exception?
3.Should I try instead to connect to www.primary_domain.com/aliased_domain_folder/somefile.cgi instead of www.aliased_domain .com/somefile.cgi?


Doug Gunnoe

Posts: 22
Nickname: dgun
Registered: May, 2007

Re: Applet restrictions and aliased domains Posted: Oct 10, 2007 5:53 PM
Reply to this message Reply
> I assume it is the A records or cname records are what > have you that

Meant "or what have you". Not "are". geez...

Doug Gunnoe

Posts: 22
Nickname: dgun
Registered: May, 2007

Re: Applet restrictions and aliased domains Posted: Oct 11, 2007 5:40 AM
Reply to this message Reply
The answer is that a domain alias is not a problem.

I had an error somewhere else.

Flat View: This topic has 2 replies on 1 page
Topic: Applet restrictions and aliased domains Previous Topic   Next Topic Topic: **** Sr Jav dev position -- $85/hr ***

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use