manojmaruthoor 0 Newbie Poster

I am working in J2EE platform running in Apache Tomcat Server.Now i am stuck with 2 problems

1.I am using JApplet and invoking them in JSP page.This JApplet is enclosed with reading an xml file and displaying its contents.This is not working when i call the Applet in jsp page.I have given file permission in catalina.policy but still it is not working.

I have set the policy like this:

grant {
permission java.util.PropertyPermission "user.dir", "read";
permission java.io.FilePermission "<<ALL FILES>>", "read";
};


2.In the above JApplet i am reading and writing the data through network using Sockets.This is also not working in JSP even after setting the permission in catalina.policy as below:

grant {
permission java.net.SocketPermission "*.*", "connect";
};

The above mentioned JApplets are working fine in standalone mode but it is not working in the Web environment.

It will be very much helpful if u can provide a solution as soon as possible


Thanking you
Manoj
TVM