hi,
thanx for this quick reply.
Second answer i got it.First i did not get it.
same program when i run through appletviewer it
running properly but as i am using tomcat so in
browser it giving error.do u think it is not advisable
to use policy tool b'cos my applet and servlet are on
the same server.Can u explain first one in detail.
gunjan
--- Shital Kanitkar <[EMAIL PROTECTED]> wrote:
> Lucky you! I'd just asked this question 2 days back
> with no answer and had
> to ferret it out myself. Well, you have two options,
> one is to download a
> Web Server and access the applet by the URL and not
> by double clicking it in
> explorer. Otherwise, use the policy tool and grant
> your applet permission.
>
> Hope this helps,
>
> -Shital
>
> ----- Original Message -----
> From: help java <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 14, 2000 10:29 PM
> Subject: It's Urgent
>
>
> > hi,
> > I hope u can solve this problem.
> > I am using applet servlet communication.
> > till this code it's work fine in applet
> >
> > URL url = new
> >
>
URL("http://10.5.0.39:8080/servlet/SerResourceGroup");
> > urlConn =
> url.openConnection();
> >
> urlConn.setUseCaches(false);
> >
> >
>
urlConn.setRequestProperty("CONTENT_TYPE","application/octet-stream");
> > urlConn.setDoInput(true);
> > urlConn.setDoOutput(true);
> >
> >
> > but when i try to read using this ----
> >
> > ObjectInputStream oi = new
> > ObjectInputStream(urlConn.getInputStream());
> >
> showStatus((String)oi.readObject());
> >
> >
> > it's gives error ---
> > access denied (java.net.SocketPermission proxy.ur
> > servername.com resolve)
> >
> > can u pleae tell me how can i solve this problem
> > ..Applet and servlet both r on same server.
> >
> > thanx in advance.
> >
> > gunjan
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Mail - Free email you can access from
> anywhere!
> > http://mail.yahoo.com/
> >
> >
>
___________________________________________________________________________
> > 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
> >
>
>
___________________________________________________________________________
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
___________________________________________________________________________
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