Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why could not view back the attachment files  RSS feed

 
subasini Muniandy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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....
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!