Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / December 2006

Tip: Looking for answers? Try searching our database.

Saving web pages from a java app

Thread view: 
nyathancha@hotmail.com - 24 Dec 2006 15:48 GMT
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 - 24 Dec 2006 16:06 GMT
> Hi,
> I was wondering if there was any way to save the web page currently
[quoted text clipped - 9 lines]
>
> 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.

Signature

Daniel Dyer
https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java

nyathancha@hotmail.com - 25 Dec 2006 11:41 GMT
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 !!

> > Hi,
> > I was wondering if there was any way to save the web page currently
[quoted text clipped - 21 lines]
> Daniel Dyer
> https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.