URL object has to be created in programming applet-servlet communication.
There are thought to be some ways.
URL con=URL
1.(getCodeBase(),"http://serveradr:8181/servlet/MyServlet");
2.(getCodeBase(),"/servlet/MyServlet");
3.(getDocumentBase(),"http://serveradr:8181/servlet/MyServlet");
4.(getDocumentBase(),"/serlvet/MyServlet");
5.("http://serveradr:8181/serlvet/MyServlet");
6.("/serveradr:8181/MyServlet");
Serlvet engine:jsdk2.1
including applet:c:\jsdk2.1\webpages\Kasa\Kasa.html
servlet class file:c:\jsdk2.1\webpages\web-inf\servlets
On local machine,the result is good,but on internet,I used No1 way,only to
fail.
Which is right on internet environment? Or if all is right,what causes the
difference between local and internet ?
Hiroshi Kasamatsu
[EMAIL PROTECTED]
___________________________________________________________________________
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
- Re: right URL in applet-servlet communication? Hiroshi Kasamatsu
- Re: right URL in applet-servlet communication? Rob Griffin
- Re: right URL in applet-servlet communication? Javier Cazares
