0 Replies Latest reply on Jun 4, 2003 3:14 AM by haytham

    Open a file in war application

    haytham

      Hi everyone. I do the following under standalone tomcat and all is fine.

      new File("/WEB-INF/xslt/PresentAccountsHTML.xsl");

      when I try to open the file this way it starts at the d directory.

      I also have getServletContext().getRealPath("/WEB-INF/xslt/PresentAccountsHTML.xsl") but got null when I ran this. Not sure why I am unable to open a file that I have under my application's directory. How does JBoss handle all the resources in my war file? How can I reference a file under my WEB-INF directory?

      Thanks,

      Haytham