problem with Applet Servlet communication

Hi All,

i am very new to java and servlets......

i am using a applet to call a servlet whose .class file is stored in WEB_INF/classes directory of tomcat..

so what URL address i should use in the new URL( ) constructor ?

presently i have done in this manner..

URL urlServlet = new URL("http://l0.0.2.65:8080/myapp.ServletDB");

URLConnection con = urlServlet.openConnection();

where ServletDB is the name of the servlet .class file

whose address is as follows...

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\myapp\WEB-INF\classes\ServletDB.class

if i use this UPL i am getting an exception..

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

Please help me....

thank you in advance

vijay

[856 byte] By [Mr.VijayDesai@OPSPLa] at [2007-11-27 10:39:26]
# 1

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

gimbal2a at 2007-7-28 19:01:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Dont post duplicate threads

sudhir

http://www.jyog.com

Sudhir_nimavata at 2007-7-28 19:01:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...