Re: Applet searchengine security. Couldn't connect to 'apache.utdallas.edu'

Gary Ellison (gary.ellison@Sun.COM)
Tue, 6 Apr 1999 11:17:53 -0700 (PDT)

Date: Tue, 6 Apr 1999 11:17:53 -0700 (PDT)
Message-Id: <199904061817.LAA03871@bootsy.eng.sun.com>
From: Gary Ellison <gary.ellison@Sun.COM>
To: Trong T Nguyen <trong.nguyen@aud.alcatel.com>
Subject: Re: Applet searchengine security. Couldn't connect to 'apache.utdallas.edu'
In-Reply-To: <370900BD.6DAA92D5@aud.alcatel.com>

>>>>> "}" == Trong T Nguyen <trong.nguyen@aud.alcatel.com> writes:

}> To Whom my concern, I developed a Java applet file called
}> 'searchengine.java'. This applet have many functions in it. One
}> of such functions is a Telnet function class. In

}> this applet (search engine class), I made a button for user to
}> press on 'telnet' command that is in another frame (class telnet).
}> But when I load the

}> applet on the web (searchengine.html), I am able to see it, but
}> when I press button 'telnet' to execute 'telnet' frame function and
}> try to

}> type in prompt text field box for a host name like
}> 'apache.utdallas.edu', an error appears on the bottom of the
}> browser (Netscape 4.5) looks like:

}> Applet searchengine security. Couldn't connect to
}> 'apache.utdallas.edu' with origin from".

}> please let me know the reason why I caught that message.

}> P.S: this fram( telnet) works well on MS DOS ( prompt) when I used
}> command

}> appletviewer searchengine.html

>From your problem description it sounds as if you are violating the
Applet Security model. Please refer to

http://java.sun.com/sfaq/#socket

In all likelihood the reason it works from the prompt is due to the
fact that the telnet classes are coming from your CLASSPATH and not
from CODEBASE.

--
mailto:gary.ellison@eng.sun.com    phone:+1 415-517-6979/x66979
  "                                   
    	    	    	    	    	    
    	    	    	    	    	    	   !"  Harpo Marx