struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel <isaacr...@gmail.com>
Subject How to open a file with struts
Date Thu, 06 Nov 2008 22:07:13 GMT
Hi every body:

I want to open a file from an action Servlet to use it in the web
aplication, this file is located in the site root but I don´t know how to
referenced, when I open the file I do this:
File file = new File("MyFile.txt")

But an Exception is thrown because the file can´t be found

Could you help me to solve this problem ?
Thanks in advance.
Greetings
Ariel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message