D
douggunnoe
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 or 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, 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?
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 or 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, 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?