dcsimg
Applet Communicating to Servlet Using JavaWebServer2.0.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, April 10, 2001 05:04 AM

When an Applet is loaded from the servlet we are getting error telling that it cannot access localhost 8080. What should we do for that.

We get that error at the time of executing
URL url = "http://localhost:8080/servlet/ChatServlet

URLConnection url = url.getConnection();

Re: Applet Communicating to Servlet Using JavaWebServer2.0.

Posted By:   John_Zukowski  
Posted On:   Tuesday, April 10, 2001 11:02 AM

Applets can only communicate back to the server from which they came. If they weren't loaded with a localhost URL, they can't talk back to it.
About | Sitemap | Contact