Re: Web page in java



On Fri, 23 Dec 2005 10:32:13 GMT, "JS" <james.sarjeant90@xxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

>Can anyone give me some pointers as to how to open a webpage in java. The
>webpage is stored locally (eventually on a cd) and its the help file for the
>java program. I cant seem to get the webpage to open and was wondering if
>its possible at all.

It is just a file. If you now its file name read it as a string chars.
See http://mindprod.com/applets/fileio.html for sample code.

if it is being served by a local webserver or application server, the
document will have a URL perhaps something like

http://localhost:81/xxxx/yyyy.html

Try it out with a browser to make sure you have the correct URL

then read it with a CGI-GET.
again see
http://mindprod.com/applets/fileio.html for sample code.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Curious IE 6 SP2 error.
    ... It was a consistant page error. ... I was doing some webpage stuff ... and needed to change the the java script program that was on the computer ... >> Robert Aldwinckle ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Web page in java
    ... just stuck on how to open the html file itself. ... >> Can anyone give me some pointers as to how to open a webpage in java. ...
    (comp.lang.java.programmer)
  • Re: passing arguments from a java file to a webpage
    ... I have a Java program (an applet) which works perfectly well. ... the order webpage should open up which will have the details of the ... so why are you wanting to code something else in perl? ...
    (comp.lang.perl.misc)
  • Re: Problems viewing a specific webpage
    ... If the other browserare Java capable and still have the problem, ... One of them may be blocking scripts/scripting. ... > I am having a problem viewing a specific webpage for camping reservations. ... The website is working on other ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Servlets, classpath and NoClassDefFoundError
    ... > Alrighty, I am new to all this Java stuff, and it is causing ... > webpage itself and it worked ... > Now, when I compile Login.java and my webpage, I include everything in ... > 1) explain to me how the compilation and execution of Java servlets ...
    (comp.lang.java.programmer)