Try like this .... URL url = new URL(getCodeBase(),"/servlet/AreaServlet"). ----- Original Message ----- From: Hiroshi Kasamatsu To: [EMAIL PROTECTED] Sent: Wednesday, November 08, 2000 9:50 PM Subject: Invoking servlet during initiation of applet I tried to display area's name during initiation of applet by invoking AreaServlet,but only to fail. On local machine,however,it is dispalyed. The path of the html file including applet is c:\jsdk2.1\webpages\Kasa\Kasa.html,and the AreaServlet is in c:\jsdk2.1\webpages\web-inf\servlets. I think maybe url connection does not make it because on local machine the result is good. Now I set the url connection between applet and AreaServlet with URL url = new URL(getCodeBase(),"http://serveraddress:8181/servlet/AreaServlet"). I don't know how to set URL object. 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 ___________________________________________________________________________ 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

Reply via email to