File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

Joined: May 26, 2003
Posts: 32800

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?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57

Thanks and you always give great help and advise on Javaranch!
I agree. Here's the link:
subject: Print web page to a CD
It's not a secret anymore!