File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Web application and Class.getResource() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Web application and Class.getResource()" Watch "Web application and Class.getResource()" New topic

Web application and Class.getResource()


Joined: Aug 03, 2001
Posts: 1
Hello everybody.
I have some web application and I have some util classes in it. There I try to get the input stream for the properties file stored in my web application along with class files in the corresponding package (let's say com/a/b/c/ So I use Class.getResource(com/a/b/c/ to get it. But it does not work.
I use Weblogic 5.1 with SP9. Where am I wrong?
Best regards,
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

your name doesn't comply with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at
Thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: Web application and Class.getResource()
It's not a secret anymore!