8 Replies Latest reply on Dec 4, 2009 5:20 PM by Emir Calabuch

    How to give relative path in seam?

    Suruchi Sahni Newbie

      I am writing code for developing a site. I am reading the XML for showing some values in dropdown. Please let me know where to keep this XML file? I mean in WEB-INF or in META-INF etc?

      Also please let me know how to refer this file through relative path. Whatsoever I give it takes through the c drive? I want to give relative path so that it does not effect code while moving in production? Please suggest.

      DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                  DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                  Document doc = docBuilder.parse(new File("Try.xml"));