aspose file tools*
The moose likes JSP and the fly likes Print web page to a CD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Print web page to a CD" Watch "Print web page to a CD" New topic
Author

Print web page to a CD

Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57
I was wondering if there is anyway to click on a button or link on JSP and it print the JSP web page onto a CD where I can actually have the web page show on a CD? I guess Java would have to create a powerpoint of the page and be able to access the CD on the Windows OS. Is this possible?
[ November 29, 2007: Message edited by: Mike Jenkins ]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30938
    
158

Mike,
The short answer is no. Now let's go into why.

A JSP is only executable Java code on the server. There is no Java run on the client. You could write an applet on the client which would run Java - but not be able to access the file system. The JSP can call JavaScript which can't save the page.

It sounds like you want the user to be able to choose "save as web page complete" and select the CD as the location. Why not just instruct the user to do this on the web page?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57
Jeanne,

Thanks and you always give great help and advise on Javaranch!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Print web page to a CD