I have an image in the tomcat/webapps/mywebapp/media folder and I want a jsp located in tomcat/webapps/mywebapp/ to print its height. However, I can't get it to work.
The way I thought of it is:
However, I get the following error:
I assume there's a problem for getting the web app to connect to my computer's X server. I'd like to know if there's a solution for this... or another idea. Because, as I understand it.. you actually need some kind of graphical server to be running for my code to work. And that's something I don't want, because that would mean I wouldn't be able to run the code on many servers.
Thanks a bunch for reading this.
Joined: Apr 11, 2001
use this class to know the general properties of image files. everything is included in the code. just go through it. :-)