File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Save button in JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Save button in JSP page" Watch "Save button in JSP page" New topic
Author

Save button in JSP page

Rishi Kant
Greenhorn

Joined: Apr 18, 2000
Posts: 18
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

Joined: Mar 22, 2000
Posts: 12678
    
    5
Seems to me you should find a plain HTML page that has that functionality on it, then use JSP to duplicate that page.


Java Resources at www.wbrogden.com
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
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


Raising Flares debut album 'Ignition' out now

http://www.raisingflares.com

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Save button in JSP page
 
Similar Threads
saving page as a file
Refresh problem in applet
Display image on jsp page
JSP download
Opening 'Save As..' dialog window in html