tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harl3kin <funksoulbrothe...@gmx.de>
Subject load files on tomcat
Date Fri, 13 Oct 2006 18:07:55 GMT

hello alltogether,

i have a problem with accessing files deployed on tomcat. I want to access
an image which is stored in a "graphics" folder right below the "WEB-INF"
folder. I read that the tomcat-context has its start path on the "classes"
folder. So what i did to retrieve the image was:

Image image = Toolkit.getDefaultToolkit().getImage("/../graphics/toon.gif");

When I debugged I recongnized that the image width and height is -1, so i
figure I didn't load the image correctly. Do you have any suggestions what I
can do to make this work?

I appreciate your time,
Thorsten
-- 
View this message in context: http://www.nabble.com/load-files-on-tomcat-tf2438873.html#a6800963
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message