Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Print web page to a CD

 
Mike Jenkins
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34418
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Mike Jenkins
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,

Thanks and you always give great help and advise on Javaranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic