• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Save button in JSP page

 
Rishi Kant
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to include a "Save" button (along with print and close buttons) in my JSP page...when user clicks on the "Save" button, the page gets saved in the local drive in HTML format.But my page has image file (logos)...which are not getting saved...I tried to download the image files in the same directory as the html file, but it doesnt work..I am using JSP 2, websphere
Please respond
Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems to me you should find a plain HTML page that has that functionality on it, then use JSP to duplicate that page.
 
Terence Doyle
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
Images you see on a web page are stored in a temp directory by the browser.
To save the links to them you'd have to include the new relative path (from the saved html file to that temp directory - which can vary depending on browsers and OS).
But even then you'd be at the mercy of browser features that might clean up the temp directory on closing the browser, etc
Seems you'll have to download the images and save them in the same directory as the html file and include that path in the html.
It all seems a bit complicated just to save something that could be seen again by simply connecting to the internet again.
------------------
Terry Doyle
Sun Certified Programmer for Java 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic