• 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

why could not view back the attachment files

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai,i attach manage to a file and got the whole url address of that particular file.when i wanna view back the content of the file in eclipse, i manage to do so.But when i run the program in internet i able to attch the file but could not view back the file.

this is the method that i use:
__example:__

urlAdd=c:/documents and Settings/desktop/suba/quotation.txt
f2=quotation.txt

<a href='file:"urlAdd"' target='_blank'><font color=magenta>"f2"</font></a>

please help me on this....
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does "c:/documents and Settings/desktop/suba/quotation.txt" exist on your local machine? If not, you will not be able to see it.

If you want to serve the file up in your web application, you'll need either to move the file to the web app's directory structure and link to it with a context relative link or build a servlet that can read it from your web server's directory structure and stream it to the browser.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic