Re: image loading problem in login page
- From: Jan-Thierry Wegener <wegener@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 22:34:43 +0200
Hi,
> if i hardcoded the path the image is diplaying, if i try
> dynamically (../images/menu/) not loading.
>
That sounds like the relative path is wrong. The relative path starts
from where you start your program and not where the files are.
To see which file is really loaded, add the following lines to your code:
File f = new File("path/to/image.gif");
System.out.println(f.getAbsolutePath());
HTH
.
- References:
- image loading problem in login page
- From: shaheedshaik@xxxxxxxxx
- image loading problem in login page
- Prev by Date: Re: Convert String to Object - Newbie Question
- Next by Date: Re: encrypted source file support in jdk?
- Previous by thread: image loading problem in login page
- Next by thread: Convert String to Object - Newbie Question
- Index(es):