O
Oitne.Inside
Hi there,
We have a little problem. We just started coding in Java and now we
need to load a html document from a webserver and print it out. We
figgured out this can be done using HTML component, but when we
execute this code, the pages stay blank. My guess is that we aren't
loading the page inside the HTML Component. Anyone got an idea???
Our code:
HTMLDocument x = new HTMLDocument();
URL u;
InputStream is = null;
DataInputStream dis;
u = new URL("http://www.mysite.com/htmlfile.php");
x.setBase(u);
dr.print(x);
We have a little problem. We just started coding in Java and now we
need to load a html document from a webserver and print it out. We
figgured out this can be done using HTML component, but when we
execute this code, the pages stay blank. My guess is that we aren't
loading the page inside the HTML Component. Anyone got an idea???
Our code:
HTMLDocument x = new HTMLDocument();
URL u;
InputStream is = null;
DataInputStream dis;
u = new URL("http://www.mysite.com/htmlfile.php");
x.setBase(u);
dr.print(x);