This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi All, I have a war in which i have a xml directory as follows :
I want to read the xml file in the model classes as they contain configuration parameters. The war is not exploded in Weblogic 7.0. How do i read the XML file. I tried using the class Loader.But it does not work. I can very well get the xml file using the following code : java.net.URL url = config.getServletContext().getResource("/xml/eventRules.xml");
String filepath=url.toString(); out.println("File Path"+filepath); But this would mean I will have to pass the parameter always to the model classes. Any way to achieve this. also 1) Can you explode a war in Weblogic 2) Is there any system property which i can use to get the Application context path in Weblogic 7.0 Thanks & Regards, Nitin