Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading a file which is not in war file of servlet  RSS feed

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made a war file with a servlet and web.xml in it.Now through this servlet i want to read a file b.drl which is not in that war file,but i am not able to read that.Please tell me how can i be able to read that file.
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ranchers,i have got so much help from javaranch.Please help me for this issue also.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's not part of the war file, you'll need to write a servlet that reads the file from disk and streams it to the browser.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!