-Original Message-
From: Anthony Eden [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 4:45 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Configuration in /WEB-INF
There is an interesting problem with using the ClassLoader or the
ServletContext for getting
-Original Message-
From: BOGAERT Mathias [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 3:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [OS-webwork] Configuration in /WEB-INF
Exactly my point. So this is a good solution after all.
Should we vote on this or something
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Configuration in /WEB-INF
Agreed, but use care with the something. While, the servlet
spec specifies a return value of null for getRealPath() in a
war deployment, it is my understanding that at one time all
of the containers did
On Wed, Jun 11, 2003 at 04:44:55PM -0400, Anthony Eden wrote:
There is an interesting problem with using the ClassLoader or the
ServletContext for getting resource data: there is no way using the APIs
to determine if the resource has been modified.
To my understanding, it is the job of the
: Anthony Eden [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 9:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Configuration in /WEB-INF
Read my original message again: this is a problem which exists for
loading resources through both classloaders and the servlet context. If
you
spec). Honestly, classpath is usually the best
solution.
-Original Message-
From: Mathias Bogaert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 6:55 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Configuration in /WEB-INF
Guys,
It seems like we are having a lot of problems
to actually use File (by getting the servlets realpath)?
LES
-Original Message-
From: Hani Suleiman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 9:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Configuration in /WEB-INF
getRealPath is very bad, what's so wrong
-Original Message-
From: Hani Suleiman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 9:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Configuration in /WEB-INF
getRealPath is very bad, what's so wrong with
servletContext.getResource() though?
On Tuesday, June 10, 2003, at 06:59 PM
This is exactly the way SiteMesh does it. Have a look at the ConfigLoader.
Cheers,
Mathias
- Original Message -
From: Anthony Eden [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 10:44 PM
Subject: Re: [OS-webwork] Configuration in /WEB-INF
Isn't getRealPath() deprecated though?
-Pat
- Original Message -
From: Mathias Bogaert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 2:06 PM
Subject: Re: [OS-webwork] Configuration in /WEB-INF
This is exactly the way SiteMesh does it. Have a look
: Wednesday, June 11, 2003 11:19 PM
Subject: Re: [OS-webwork] Configuration in /WEB-INF
Isn't getRealPath() deprecated though?
-Pat
- Original Message -
From: Mathias Bogaert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 2:06 PM
Subject: Re: [OS-webwork
Sounds to me like this is not a good plan then.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 3:48 PM
Subject: RE: [OS-webwork] Configuration in /WEB-INF
According to the servlet spec getRealPath() will always return null
Guys,
It seems like we are having a lot of problems with finding configuration
files in the classpath etc. Also, I dislike putting configuration files
other than .properties on the classpath. That's why I propose putting it all
(components.xml, xwork.xml etc)under /WEB-INF directly (same as
13 matches
Mail list logo