| | |
Java Applet and IIS
![]() |
•
•
Join Date: Jul 2004
Posts: 11
Reputation:
Solved Threads: 0
Hi,
I have created an applet code. The code is normally working fine without IIS.
I have IIS 5.0 installed on my Windows 2000 Server. My web site home directory is "C:\Inetpub\wwwroot". I already coppied the files to the correct folder. In the address box of Internet Explorer, I typed "http://localhost/myfile.html". myfile.html is to run my applet. But when I go to the page I got the error message saying that "Connection refused: connect".
But, if I copy the code to my Windows XP pro machine with IIS 5.1 installed, it works fine.
Can anyone give me some idea or any dvise?
Your advise will be much appreciated.
Thanks,
Roda
I have created an applet code. The code is normally working fine without IIS.
I have IIS 5.0 installed on my Windows 2000 Server. My web site home directory is "C:\Inetpub\wwwroot". I already coppied the files to the correct folder. In the address box of Internet Explorer, I typed "http://localhost/myfile.html". myfile.html is to run my applet. But when I go to the page I got the error message saying that "Connection refused: connect".
But, if I copy the code to my Windows XP pro machine with IIS 5.1 installed, it works fine.
Can anyone give me some idea or any dvise?
Your advise will be much appreciated.
Thanks,
Roda
•
•
Join Date: Jul 2004
Posts: 11
Reputation:
Solved Threads: 0
I found and fixed the problem. The problem was with my applet code that I was using URL constructor without assigning port 8080. It is working fine now. I just edit my code as below.
Original code:
Corrected code:
Thanks
=============
Roda
Original code:
Java Syntax (Toggle Plain Text)
URL logfileURL1 = new URL(documentBase.getProtocol(), documentBase.getHost(), path + "/Total.log");
Corrected code:
Java Syntax (Toggle Plain Text)
URL logfileURL1 = new URL(documentBase.getProtocol(), documentBase.getHost(), 8080, path + "/Total.log");
Thanks
=============
Roda
![]() |
Similar Threads
- download java applet (Java)
- Java Applet [Move Image] (Java)
- Java applet failed (Java)
- Java Applet Help (Java)
- calling the internet browser from a java applet (Java)
- Graph??? Help For My Project-java Applet (Java)
- where to get the java applet? (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: java
- Next Thread: Help for my project
| Thread Tools | Search this Thread |
account android api applet application array arrays automation awt bidirectional binary birt bluetooth busy_handler(null) chat class classes client code columns component database designadrawingapplicationusingjavajslider draw eclipse error errors exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance input integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source plazmic print problem program programming project property recursion ria scanner search server set smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree webservices windows





