RE: Properties file problem

2006-04-25 Thread Tim Lucia
re to put the file(s). Tim -Original Message- From: VIKASS NAGPAL [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 12:07 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Properties file problem Hi All, I think the problem can be resolved by creating the temporary dire

Re: Properties file problem

2006-04-25 Thread VIKASS NAGPAL
Hi All, I think the problem can be resolved by creating the temporary directory, anyother directory which location can be "hard-wired as initial parameter in the web.xml file". But where in my application's web.xml I have to "hard-wire" this directory. Can you please let me exactly where should I

Re: Properties file problem

2006-04-21 Thread Hadraba Petr
Hi Vikas, some details: I see you're correctly using the getClass.getResource() (I'm using getServletContext().getResourceAsStream() or getServletContext().getResource()). But, Why are you creating resources? You see all the war content in the host OS filesystem because of unpackWars="true". This

Re: Properties file problem

2006-04-21 Thread Marc Farrow
I am sorry, but I do not know what you are trying to do. The best place for this type of question would be on a Java list. This is a list specific to Tomcat issues. On 4/20/06, VIKASS NAGPAL <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have a problem here. I have Pproperties file. > It has the f

Properties file problem

2006-04-20 Thread VIKASS NAGPAL
Hi All, I have a problem here. I have Pproperties file. It has the following code: File f = new File(propertyFolder); if (!f.exists()) f.mkdir(); f = new File(propertyFolder + System.getProperty("file.separator") + propertyFileName); if (!f.exists()) { String s = ((this.getClass().getResource(