File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to read a file from an Action class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to read a file from an Action class?" Watch "how to read a file from an Action class?" New topic
Author

how to read a file from an Action class?

Sean Li
Ranch Hand

Joined: Feb 27, 2002
Posts: 154
I have to read a file from the WEB-INF/classes/dir/ directory, say the file name is file.xml, so the relative path is WEB-INF/classes/dir/file.xml, how can I read it from a Action class? seems cannot find any solution. pls help me, any words is appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to read a file from an Action class?
 
Similar Threads
Loading file from classes directory
Read file from current dir in webserver
requested resource (first.jsp) not available
Running servlet in tomcat
Configure a new servlet in Struts 2.0