• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassLoader - intutive issue

 
samarthya saurabh
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I try to use ClassLoader.getClassLoader().getResource("Name") in a simple java application it works fine, but if I try using the same statement in context of a servlet it fails. Is there something that I am missing.

I have tried all the options class.getResource() and others. Do I need to do something specific for a servlet to get a resource?

- Saurabh
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!