Home > Archive > Java Help > December 2006 > Saving web pages from a java app
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Saving web pages from a java app
|
|
| nyathancha@hotmail.com 2006-12-24, 7:11 pm |
| Hi,
I was wondering if there was any way to save the web page currently
active (in firefox lets say) at a certain location using a java app.
For example from the command line, i want to be able to just say
"SavePage.exe -d:\temp\JavaTut" and I want it to automatically save the
current active page (in its entirety) to the specified location on
disk. How would you guys go about doing this?
Probably, not the right place to ask but just for the sake of
completion, what form would the solution take in the .NET world?
Any help and or suggestions are greatly appreciated.
Kind regards.
| |
| Daniel Dyer 2006-12-24, 7:11 pm |
| On Sun, 24 Dec 2006 15:48:28 -0000, <nyathancha@hotmail.com> wrote:
> Hi,
> I was wondering if there was any way to save the web page currently
> active (in firefox lets say) at a certain location using a java app.
>
> For example from the command line, i want to be able to just say
> "SavePage.exe -d:\temp\JavaTut" and I want it to automatically save the
> current active page (in its entirety) to the specified location on
> disk. How would you guys go about doing this?
>
> Probably, not the right place to ask but just for the sake of
> completion, what form would the solution take in the .NET world?
>
> Any help and or suggestions are greatly appreciated.
Since you seemingly want the save to be user-initiated, why not just use
the functionality built-in to the browser?
Your chances of being able to do this from an external Java program are
slim to none.
Dan.
--
Daniel Dyer
https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java
| |
| nyathancha@hotmail.com 2006-12-25, 8:09 am |
| I am building a tool that does various other things and generates
documents. Part of which is to store the current webpage i am viewing
for archival/referential purposes. Rather than the tool do its thing
and then me go back to the browser and click file-> save as ->
naviagate -> create directory etc. etc. and save the relavent pages for
future reference. It would be nice if the tool already did that.
I wonder if creating some sort of plugin/extension for firefox might
work. I didn't expect it to be a walk in the park, but surely its not
impossible !!
Daniel Dyer wrote:
> On Sun, 24 Dec 2006 15:48:28 -0000, <nyathancha@hotmail.com> wrote:
>
>
> Since you seemingly want the save to be user-initiated, why not just use
> the functionality built-in to the browser?
>
> Your chances of being able to do this from an external Java program are
> slim to none.
>
> Dan.
>
> --
> Daniel Dyer
> https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java
|
|
|
|
|