• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to read a file from an Action class?

 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!