2008/3/28, Ashish Kulkarni <[EMAIL PROTECTED]>:
> Hi
> i did File f = new File(mypath); and it works
> What is the danger of doing so?
Sorry, I was a bit misleading. I meant that it is better not to expose
that file with an absolute path to the internet, as it can become a
backdoor to your serve
Hi
i did File f = new File(mypath); and it works
What is the danger of doing so?
Ashish
On 3/28/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
>
> 2008/3/28, Ashish Kulkarni <[EMAIL PROTECTED]>:
>
> > I can use servletContext.getResource('/WEB-INF/myconfig.xml'); to read
> > myconfig.xml file
2008/3/28, Ashish Kulkarni <[EMAIL PROTECTED]>:
> 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??
You can read it wit
place the myconfig.xml in WEB-INF/classes
then in struts.xml include that file
M-
- Original Message -
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
To:
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
5 matches
Mail list logo