you can check whether your sevlet has been load or not.
if it is not, obviously there is something wrong with the name of it.
you 'd better check the configuration o that servlet in th eweb server.
best regard
zh jiang
-----Original Message-----
From: EXT Thomas Schuchert [mailto:[EMAIL PROTECTED]]
Sent: 11. April 2000 13:45
To: [EMAIL PROTECTED]
Subject: Applet-Servlet-Communication per URL
Hello,
I'm trying to establish a applet-servlet-communication per URL.
code >>
URL base = getCodeBase();
System.out.println ("CodeBase = "+base);
System.out.println ("parameter =
"+getParameter("recommendationSource"));
System.out.println ("Protocol = "+base.getProtocol());
System.out.println ("Host = "+base.getHost());
System.out.println ("Port = "+base.getPort());
url = new URL(base.getProtocol(), base.getHost(), base.getPort(),
getParameter("recommendationSource") + "?sendNames=" + (new
Boolean(sendNames)).toString());
System.out.println ("Url = "+url.toString());
ObjectInputStream ois = new ObjectInputStream(url.openStream());
<<code
output>>
CodeBase = http://localhost:8080/classes/
parameter = /servlet/Profiler.web.servlets.RecommendationSource
Protocol = http
Host = localhost
Port = 8080
Url =
http://localhost:8080/servlet/Profiler.web.servlets.RecommendationSource
?sendNames=true
java.io.FileNotFoundException:
localhost:8080//servlet/Profiler.web.servlets.RecommendationSource?sendN
ames=true
at com/ms/net/wininet/http/HttpInputStream.connect
(HttpInputStream.java)
at com/ms/net/wininet/http/HttpInputStream.<init>
(HttpInputStream.java)
at com/ms/net/wininet/http/HttpURLConnection.createInputStream
(HttpURLConnection.java)
at com/ms/net/wininet/WininetURLConnection.getInputStream
(WininetURLConnection.java)
at java/net/URL.openStream (URL.java)
at Profiler/web/applets/DialogApplet.updateRecommendations
(DialogApplet.java:292)
at Profiler/web/applets/DialogApplet.init
(DialogApplet.java:124)
at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
<<output
if I try the created Url in a Browser (IE) it works,
but the IOException returns with a Url different I've created
from where comes '//'? What's wrong?
Profiler.web.servlets.RecommendationSource is situated in the
servlets-dir of JWS2.0
Thanks for help in advance
/*************************/
Thomas Schuchert
Cyberconsult
Beratungsgesellschaft f�r Neue Medien mbH
[EMAIL PROTECTED]
030 - 39 99 05 46
/*************************/
___________________________________________________________________________
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