Hi all,
I am new to servlets. Trying things out for the first time. I am sending a
serialized object from an Applet to a Servlet. I used a "log" method to
track the progress. The URLConnection.getConnection() worked without an
exception and it logged "Connected" so I presume the Applet was able to
connect to the servlet:
webServerStr = http://localhost:8080/servlet/StudentDBServlet"
log("Connecting to servlet...");
URL studentDBservlet = new URL( webServerStr );
URLConnection servletConnection =
studentDBservlet.openConnection();
log("Connected");
But when the following code gives me an exception:
log("Sending the student to the servlet...");
outputToServlet = new
ObjectOutputStream(servletConnection.getOutputStream());
com.ms.security.SecurityExceptionEx[StudentDBApplet.sendStudentToServlet]:
cannot access "localhost":8080
Can some one please tell me how to overcome the security problem?
Thanks,
-Shital
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html