But i want to speicify it from the web context and not from the appserver ..
You've almost got the answer Look into ServletContext. You will find methods like getResource and getResourceAsStream to access resources in your web application.
But my class is a utility class..which gets called from different classes..in the app and the call to this doesnt have the servlet context passed to it..