Thad Sobota
03-01-2003, 08:53 PM
I have an html page with a java program in it which is a side menu. Problem is, I can't get the java program to open the links when the user clicks on the link. Getting IOException error and can't figure what I am doing wrong. A part of the code I have is as follows...
try {
URL link = new URL ("bagtags.html");
URLConnection uconnection = link.openConnection();
getAppletContext().showDocument(link);
} //catch (IOException e) {}
All html pages and the java program are in the same directory at present. Can anybody see what I might be doing wrong?
try {
URL link = new URL ("bagtags.html");
URLConnection uconnection = link.openConnection();
getAppletContext().showDocument(link);
} //catch (IOException e) {}
All html pages and the java program are in the same directory at present. Can anybody see what I might be doing wrong?