Hello,
maybe you could save the absolute path inside a properties file
or pass it as an init parameter in web.xml. For each location of
your app you would have to set this path appropriately. You
could use absolute paths and wouldn't need to change the source
code of the application.
I think you could store it in WEB-INF and use
ServletContext.getRealPath(/WEB-INF).
Andreas Probst [EMAIL PROTECTED] wrote on 21.11.2002 12:19:51:
Hello,
maybe you could save the absolute path inside a properties file
or pass it as an init parameter in web.xml. For each location of
,
Harsha
-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 17:50
To: Tomcat Users List
Subject: Re: File Path Problem...
Hello,
maybe you could save the absolute path inside a properties file
or pass it as an init parameter in web.xml
. It may be deployed on win32 machines or Solarix machines or Linux
machines... :(
Any more ideas...
Regards,
Harsha
-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 17:50
To: Tomcat Users List
Subject: Re: File Path Problem...
Hello,
maybe
Hello Bharanidharan,
Don't confuse the system file path with the URL path.
What URL is in your browser on the page that contains the
window.open()?
window.open will try to find the page relative to your domain root.
If you are at:
http://www.myserver.com/mywebapp/servlet/myservlets.login
jack,
you are right.. i wasnt using url path.. it works fine now..
i appreciate your help..
thanks
bharani
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 1:08 PM
To: Tomcat Users List
Subject: Re: file path problem
Hello
-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 1:08 PM
To: Tomcat Users List
Subject: Re: file path problem
Hello Bharanidharan,
Don't confuse the system file path with the URL path.
What URL is in your browser on the page that contains the
window.open()?
window.open