This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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.
 
Consider Paul's rocket mass heater.
 
subject: how to read a file from an Action class?