• Post Reply Bookmark Topic Watch Topic
  • New Topic

File not found: wrong path from servlet?

 
Tim Storms
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to read out a template file in my web application but I'm not able to do that.

First of all, this is a part of the code to read out the file:

When I try to read the file in my TemplateReader class, I'm getting the following error:

This is how I try to find the path in a servlet (the path which the TemplateReader class gets in its constructor):

What am I doing wrong here? What should I change so that the TemplateReader class knows where to find the file? Thanks a lot!
 
Tim Storms
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been too fast to post this question. I've solved it doing this:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!