Hello -
I get an error while trying to have my applet talk to my servlet. When ever
I run the simple code below:
////////////////////////////////////////////////////////////////////////////
///////////////
public void actionPerformed(ActionEvent event)
{
try
{
URL dataURL = new
URL("http://wthompson:8080/servlet/Servlet05");
URLConnection connection = dataURL.openConnection();
connection.setUseCaches(false);
connection.setRequestProperty("Content-Length", "10");
BufferedReader in = new BufferedReader(new
InputStreamReader(connection.getInputStream()));
String line;
while((line = in.readLine()) != null)
{
t.append(line + "\n");
}
}
catch (IOException ioe)
{
t.append("IOException: " + ioe);
}
}
////////////////////////////////////////////////////////////////////////////
///////////////
I get the following error: "IOException: java.io.FileNotFoundException:
wthompson:8080//servlet/Servlet05". I've tried a great many directories. As
well. There must be something else. Appreciate any help.
Sincerely,
Willard Thompson
___________________________________________________________________________
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