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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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/fff.properties). So I use Class.getResource(com/a/b/c/fff.properties) 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 http://www.javaranch.com/name.jsp
Thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link: http://aspose.com/file-tools
subject: Web application and Class.getResource()
Similar Threads
What is the best practice to add the application property files to the classpath?
Need help in compiling programs
Where does this package go?
Locating a jar file relative to the application
Connection to Progress Database