im using Listener class in my web app , and i need to know the relative path
i know i can use the getServletContext().getRealPath("/") when im using HttpServlet class
but some hoe it seams i can't use it in ServletContextListener class
Start reading the javadoc of the class in question. Check the methods. Check the method parameters. Check the javadoc of the class which is used as method parameter. Click your way further to gather information.