This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Accessing an Excel file inside a WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Accessing an Excel file inside a WAR file" Watch "Accessing an Excel file inside a WAR file" New topic

Accessing an Excel file inside a WAR file

Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
Hello All,

I don't know where to place this appropriately, so I'll just post it here. I have an Excel file that I packaged with my WAR file, which I am using as a template for a certain download. When the user clicks a button, this file is read and it's content is saved as a downloaded file. The thing is, I am having problems accessing the Excel file. It seems like I cannot read the file inside the WAR. I tried accessing the same file, now saved in a directory outside of my WAR file, and the file is downloaded correctly. Does anybody out there knows how to correctly access a file inside a WAR file?

Thanks in advance.

There's so much to learn in this industry, and not everybody has the necessary interest.
I agree. Here's the link:
subject: Accessing an Excel file inside a WAR file
It's not a secret anymore!