I use Apache tomcat 6
in jsp page i use a java bean
in my project i have a folder "Sources" and in this folder I have xml file that I want to read it
when I want load it in my java Class, system give an IOException and also I can not access to it like this "localhost:1313/project/Sources/xmlns.xml"
so what do I have to do?
why web server can not use it?
1:tell we about what configs I have to do?
2:how load it in Java Class as relative position
no I tested with GlassFish v3.0 and 2.0 too but server denied access for this file even images
so why I can not?
but in classes I can load my xml file like this "C:\\xmls\\xmlns.xml"
but I have a "Sources" folder in my project and all of the my sources and images and..... in this folder
I want access to file like this "localhost:1313/myProject/Sources/something.xxx"
why web server denied access ? and how can tell to server that we want use this folder?
Joined: Oct 08, 2006
I am not sure, but the way you formulated your post demotivated me to give an extended answer.
o my god
please look, I know my English is bad
but let's look again
in my project I have some folder such as Web,web-inf and...
so I have 3 image and 2 css style and 4 js file
I want create a folder (such as Sources) and put these guys there
but i can not access to them like "localhost:8009/myProject/Sources/1.jpg" so why?
what i should to do?