• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Save button in JSP page

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic