Re: Fwd: [OT] How to specify classpath for an application

2006-06-28 Thread Gareth Evans
I've used this method before to load configfiles and jar files from an external directory with the main application packaged into a war, whilst it is messy, it does work. From within a struts plugin... ClassLoader loader = servlet.getClass().getClassLoader(); try { URL configPathUrl = new

RE: Fwd: [OT] How to specify classpath for an application

2006-06-28 Thread De Miguel, Martin
BTW, in your web.xml you have to add : com.foo.InitializatorApp -Original Message- From: De Miguel, Martin Sent: Wednesday, June 28, 2006 12:01 PM To: Struts Users Mailing List Subject: RE: Fwd: [OT] How to specify classpath for an application Hi, you can set in you

RE: Fwd: [OT] How to specify classpath for an application

2006-06-28 Thread De Miguel, Martin
"YOUR_CONFIG_FILE"); ... } } Hope helps you -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 11:48 AM To: Struts Users Mailing List Subject: Re: Fwd: [OT] How to specify classpath for an application It's rather not possible in g

Re: Fwd: [OT] How to specify classpath for an application

2006-06-28 Thread David Delbecq
It's rather not possible in general, The .war is supposed to be a 'complete' application, config included. If you load the ressources using the classloader, you can still use 'tricks' that depend on container specific behaviour, but that is not recommanded. The best way if you want your user n

Fwd: [OT] How to specify classpath for an application

2006-06-28 Thread Pankaj Gupta
-- Forwarded message -- From: Pankaj Gupta <[EMAIL PROTECTED]> Date: Jun 28, 2006 11:03 AM Subject: [OT] How to specify classpath for an application To: user@struts.apache.org Hi All, I want to specify a config folder in my classpath which will not be part of my war file. Can you