dcsimg
Connecting Applets to Servlets in VAJ WTE
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Richard_Peters
Posted On:   Wednesday, July 18, 2001 04:11 AM

We are trying to set up a simple applet that can connect to a servlet, using the WTE for our server. We have downloaded the demo from http://www.j-nine.com/pubs/applet2servlet/ which was loaded into VA Java. However when the applet is executed and a connection is attempted to the servlet the following error message occurs. Connection Attempt URL studentDBservlet = new URL(servletGET); URLConnection servletConnection = studentDBservlet.openConnection(); servletConnection.connect(); Error on .connect() java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve)    More>>

We are trying to set up a simple applet that can connect to a servlet, using the WTE for our server.


We have downloaded the demo from http://www.j-nine.com/pubs/applet2servlet/ which was loaded into VA Java.


However when the applet is executed and a connection is attempted to the servlet the following error message occurs.


Connection Attempt


URL studentDBservlet = new URL(servletGET);
URLConnection servletConnection = studentDBservlet.openConnection();
servletConnection.connect();


Error on .connect()


java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve)



Any assistance greatly appreciated.

Richard Peters & co.

   <<Less
About | Sitemap | Contact