This may work.
URL url = this.getClass().getResource(../x.xml);
rgds
Antony Paul
- Original Message -
From: Sudhrasun Ramalingam [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:54 AM
Subject: RE: Tomcat 4.1.23
On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote:
: I've a doubt, What is the root directory for a webapp?
: And if the answer is $CATALINA_HOME/webapps/webapp..
:
: Then how can the jar file referring $CATALINA_HOME as root for my web
: application?
1/ root directory and
an error saying x.xml not found.
What can be done for this ?
-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 7:14 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.23
On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote:
: I've a doubt
How the file is accessed ?.
rgds
Antony Paul
- Original Message -
From: Sudhrasun Ramalingam [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 9:33 AM
Subject: RE: Tomcat 4.1.23
Sorry for using the wrong words,
I've
4.1.23
How the file is accessed ?.
rgds
Antony Paul
- Original Message -
From: Sudhrasun Ramalingam [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 9:33 AM
Subject: RE: Tomcat 4.1.23
Sorry for using the wrong words
Hello there,
I'm Running TC 4.1
I've created a jar file which processes some xml. And the package names goes
like x.y.z.
For test this application I created a sample project (stand alone) under
c:\test and placed the xml file under c:\test\rule.xml. This works fine!
My problem
Use a servlet that loads the xml data from a file pointed by web.xml
or even better, use servlets parameters to load your data (if you can
control the generation of the xml file).
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com
Sudhrasun Ramalingam
Villar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 6:28 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.23
Use a servlet that loads the xml data from a file pointed by web.xml
or even better, use servlets parameters to load your data (if you can
control the generation of the xml file
Tomcat 4.1.23 Alpha is now available for testing.
Changes over 4.1.22 include:
- Updated releases of all dependencies.
- Fix incorrect enumeration of sessions in JDBC store.
- Reject decoded URIs which don't start with '/', returning a 400.
- Auth request for an empty path (relative