• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Where we should put file that we want to read as stream in project folder?

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello every, I use Struts for framework and try to read excel file that stored in project folder with POI API.
However, I don't know where we should put the original file in the project.
When build project, the file will be included to deployed folder automatically.
Actually, I've put it in web content folder or WEB-INF, the first time of building, the file was included to deployed folder.
When I deleted the file in deployed folder and started building again, the file was not include to deployed folder.

Please could you give me some suggestion.
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't get your question clearly.

Do you want to make that excel file as part of your project war or you want to separate out from the project?

Typically if its tightly coupled with your project and its never going to change, put it in the project war. You can dump it under WEB-INF/classes folder so that you don't need to do jugglery while getting the file.

See if it helps ...
 
Theeranit Pongtongmuang
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank patil manoj.
 
They weren't very bright, but they were very, very big. Ad contrast:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic