place the myconfig.xml in WEB-INF/classes 
then in struts.xml include that file
    <include file="myconfig.xml"/>

M-
----- Original Message ----- 
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Friday, March 28, 2008 3:22 PM
Subject: [OT] Read XML file from folder outside web application


> Hi
> I can use servletContext.getResource('/WEB-INF/myconfig.xml'); to read
> myconfig.xml file which is under WEB-INF from a servlet
> If i keep this file at c:/test/myconfig.xml file, can i read it from
> a servlet, if so how??
> 
> Ashish
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to