Actually its not, you can access the file under WEB-INF, I was using the current
classloader from the classes and I should have been using this instead
InputStream is =
_rundata.getServletContext().getResourceAsStream("WEB-INF/content/test.html");
and yes everything under WEB-INF is protected from the outside but since I am in the
context of the WebApp I can do this..
Don
>>> [EMAIL PROTECTED] 2/24/2003 9:45:04 AM >>>
If i remember right, everything under WEB-INF was hidden by web.
Or, try to put the complete path to it if you are reading it as a file
from the app.
-----Messaggio originale-----
Da: Don Hill [mailto:[EMAIL PROTECTED]
Inviato: luned� 24 febbraio 2003 16.03
A: [EMAIL PROTECTED]
Oggetto: content from folder
Hi,
I am trying to get some html fragment from a folder name content, it is
located in webapp/jetspeed/WEB-INF/content/community.html.
I have tryied several ways to get the file as a inputstream
getClass().getClassLoader().getResourceAsInputstream(/WEB-INF/content/co
mmunity.html");
getClass().getClassLoader().getResourceAsInputstream(WEB-INF/content/com
munity.html");
getClass().getClassLoader().getResourceAsInputstream(/content/community.
html");
getClass().getClassLoader().getResourceAsInputstream(content/community.h
tml");
None of these seem to work, I have also tryied to get it with the
ServletContext, anyone have a little insight into this ? Is there a
ContentManagement system that is included with Jetspeed ?
Thanks
Don
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]