How are you accessing the XML file?
Are you using ClassLoader.getResourceAsStream( "filename" )?
Need some more information before I can give you a hand.
Adam
Pascal
Troxler To: JRun-Talk
<[EMAIL PROTECTED]>
<admin@trosof cc:
t.ch> Subject: file path
11/29/00
10:36 AM
Please
respond to
jrun-talk
my application is using the XML4Java Tool from IBM Alphaworks.
I use it to parse an XML File.
it works very well.
but now i wanna access it from a JSP.
But he can't find the xml file.
I have the JAR file with my Software Package in the lib path (which works
well).
And the XML File is also in that directory. But now, java cant find the XML
file, if i call my helper class from a JSP.
What i'm doing wrong?
Where do i have to place the XML File, so that Java can find it?
I have tried to put it in several dir's, but none worked.
Also the "user.dir" directory from the System environment does not work.
Pascal Troxler
University of Applied Sciences
Biel, Switzerland
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and
provide more resources for the community.
http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists