wood burning stoves 2.0*
The moose likes Servlets and the fly likes Exporting / Importing a file using hyperlink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Exporting / Importing a file using hyperlink" Watch "Exporting / Importing a file using hyperlink" New topic
Author

Exporting / Importing a file using hyperlink

Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
Hi
I want to export the data in an xml file, when the user click on an export button in the webpage of an application. The directory where export file is to be generated is externalized in a properties file. Export is working fine. Now The same file is to imported(i.e downloaded) using a hyperlink .I am unable to download the exported file. The error is that server is unable to find the path for the exported file. Please let me know how to export the file at defined location so that i may be able to download it from that location using hyperlink import (i.e download).
ib idris
Greenhorn

Joined: Aug 02, 2003
Posts: 29
Hi,
could you give some code. Have you doublechecked the path?
http://galileo.spaceports.com/~ibidris/
Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
I have specified the export path in my properties file as
basepath = /opt
Now when i click on export button, a file is generated under the folder /opt
(e.g /opt/export1.xml)
Now for importing, I read the opt directory and display the hyperlinks to all the files in the opt directory. Any hyperlink is like as under
(e.g /opt/export1.xml)
My web application on websphere on LINUX OS. When I click on the hyperlink, Then it gives the error "Resource is not available on the specified path".
For more information , plz reply back.
Thx and Regards,
Raj Jindal
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Hi Raj
Have you double check the path for whether the export1.xml file exists on /opt folder.
hth
MB
Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
Yup, I have double checked the path. The file exists in /opt folder.
 
wood burning stoves
 
subject: Exporting / Importing a file using hyperlink