Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exporting / Importing a file using hyperlink

 
Raj Jindal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
could you give some code. Have you doublechecked the path?
http://galileo.spaceports.com/~ibidris/
 
Raj Jindal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raj
Have you double check the path for whether the export1.xml file exists on /opt folder.
hth
MB
 
Raj Jindal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, I have double checked the path. The file exists in /opt folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic